Utility Methods Class
Item Index
Methods
Methods
indexOf
(
Number
-
array
-
searchElement
Finds the first occurrence of a specified value searchElement in the passed in array, and returns the index of that value. Returns -1 if value is not found.
var i = createjs.indexOf(myArray, myElementToFind);
Parameters:
Returns:
Number:
The first index of searchElement in array.