e5f7677c233a0427167fab49c4e6c7625dc816b6acd0cb203df0b44524eb21d3ae66211f8cec692b94fceed26ae6100db1d6e81373ac0297cba14d792e716f 618 B

123456789101112
  1. 'use strict';
  2. var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
  3. var $findLastIndex = require('../internals/array-iteration-from-last').findLastIndex;
  4. var aTypedArray = ArrayBufferViewCore.aTypedArray;
  5. var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
  6. // `%TypedArray%.prototype.findLastIndex` method
  7. // https://tc39.es/ecma262/#sec-%typedarray%.prototype.findlastindex
  8. exportTypedArrayMethod('findLastIndex', function findLastIndex(predicate /* , thisArg */) {
  9. return $findLastIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
  10. });