Last updated 6 years ago
Returns the index of the first/last occurrence of the item in the list. Returns 0 if item is not found.
first
var list; list.indexOf('') + 1;
last
var list; list.lastIndexOf('') + 1;