ebab00c7634af3c6a3bf4a019d16c177608f8c6ff410c3f78fa9cbdec8b8f2b985635c6cbca65064dd6fa512f48c76d910f47c40ec47fc99fca11bda9d7356 545 B

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