You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
545 B
12 lines
545 B
'use strict'; |
|
var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); |
|
var $find = require('../internals/array-iteration').find; |
|
|
|
var aTypedArray = ArrayBufferViewCore.aTypedArray; |
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; |
|
|
|
// `%TypedArray%.prototype.find` method |
|
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.find |
|
exportTypedArrayMethod('find', function find(predicate /* , thisArg */) { |
|
return $find(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined); |
|
});
|
|
|