Finds a value in a array.
the value to be searched in the array
the array to search into
the index where the value has been found, -1 otherwise
assert(array_index(1, [1, 2, 3] == 0)); assert(array_index(0, [1, 2, 3] == -1)); assert("test".indexOf('e') == 1);
See Implementation
Finds a value in a array.