b2b293502de3310510305388996d48c51d212cadb5ac9e402fc54c317de20cf7ad9999e768814fd79c472b1e80ddea38acad73fb0e0f197105ae8545c7224a 580 B

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