Finding the min and max element in an Array in Flex

What would be a really good way to find min and max elements in Flex
in an array, other than looping?
LVL 1
dtivmkAsked:
Who is Participating?
 
dharm0usCommented:
var myArray:Array = [2,3,3,4,2,2,5,6,7,2];
myArray.sort(Array.NUMERIC);
var minValue:int = myArray[0];
var maxValue:int = myArray[myArray.length-1]
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.