Underscore.js _.findIndex() Function
Underscore.js _.findIndex() function is used to find the index of an element which is passed in the second parameter. We can use this for any kind of array like a number array, string array, character array, etc. If we do not know what elements are present in the array but we want to find out whethe