39861dc79b180924725d54ebc849e5378a07bb973798b5d6f328f52e70a19c54a17edb31fb518e0a262cfaa2023d2dba9fdc0ec1657574f18f519407f8504e 583 B

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