lastIndexOf.js 308 B

123456789
  1. define(['./findLastIndex', './_createIndexFinder'], function (findLastIndex, _createIndexFinder) {
  2. // Return the position of the last occurrence of an item in an array,
  3. // or -1 if the item is not included in the array.
  4. var lastIndexOf = _createIndexFinder(-1, findLastIndex);
  5. return lastIndexOf;
  6. });