es.array.last-index-of.js 413 B

12345678910
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var lastIndexOf = require('../internals/array-last-index-of');
  4. // `Array.prototype.lastIndexOf` method
  5. // https://tc39.es/ecma262/#sec-array.prototype.lastindexof
  6. // eslint-disable-next-line es/no-array-prototype-lastindexof -- required for testing
  7. $({ target: 'Array', proto: true, forced: lastIndexOf !== [].lastIndexOf }, {
  8. lastIndexOf: lastIndexOf
  9. });