indexOf
int
indexOf
(
string
,
arrayItem
)
Get the index of an item in an Array.
- Parameters:
-
string <Array>The array to search. -
arrayItem <arrayItem>The item to find.
- Returns:
int - Index of item or -1.
removeItem
Array
removeItem
(
string
,
arrayItem
)
Searches an array for an item matching the arrayItem paramter and removes it.
- Parameters:
-
string <Array>The array to search. -
arrayItem <arrayItem>The item to look for and remove from the array.
- Returns:
Array - The modified Array.