lastIndexOf.js 322 B

123456789
  1. var findLastIndex = require('./findLastIndex.js');
  2. var _createIndexFinder = require('./_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. var lastIndexOf = _createIndexFinder(-1, findLastIndex);
  6. module.exports = lastIndexOf;