lastIndexOf.js 280 B

123456
  1. import findLastIndex from './findLastIndex.js';
  2. import createIndexFinder from './_createIndexFinder.js';
  3. // Return the position of the last occurrence of an item in an array,
  4. // or -1 if the item is not included in the array.
  5. export default createIndexFinder(-1, findLastIndex);