I looked in the MDM documentation https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array to see if the arrays had some method to determine the shortest element of or longer of an array, and I did not find the solution. Is there any way to make it as simple as possible, or should I create a function to achieve it? Is there another place where you look for information?
I EDIT the question: My intention is to find out the longest text string in the following array:
var valores = [true, 5, false, "hola", "adios", 2]
Only text strings are taken into account, not the numbers in the array
Forgive the confusion, I think there is no similar question, or I ran away, well look. Thank you.