Return the index of the first element of an array where the callback returns true. Returns -1 if none do.