the index of an element in an array, negative one if not found
assert([0, 1, 2].indexOf(1) == 1); assert([0, 1, 2].indexOf(4) == -1);
See Implementation