No Description

indexOf.js 431B

123456789
  1. import sortedIndex from './sortedIndex.js';
  2. import findIndex from './findIndex.js';
  3. import createIndexFinder from './_createIndexFinder.js';
  4. // Return the position of the first occurrence of an item in an array,
  5. // or -1 if the item is not included in the array.
  6. // If the array is large and already in sort order, pass `true`
  7. // for **isSorted** to use binary search.
  8. export default createIndexFinder(1, findIndex, sortedIndex);