Determines the index of value
in array
.
Note: this function is used to augment the Array
type in angular expressions. See
angular.Array
for more info.
angular.Array.indexOf(array, value);
array – {Array} –
Array to search.
value – {*} –
Value to search for.
{number}
– The position of the element in array
. The position is 0-based. -1
is returned if the value can't be found.