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.
14 lines
722 B
14 lines
722 B
'use strict'; |
|
var ArrayBufferViewCore = require('../internals/array-buffer-view-core'); |
|
var $filterReject = require('../internals/array-iteration').filterReject; |
|
var fromSpeciesAndList = require('../internals/typed-array-from-species-and-list'); |
|
|
|
var aTypedArray = ArrayBufferViewCore.aTypedArray; |
|
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod; |
|
|
|
// `%TypedArray%.prototype.filterReject` method |
|
// https://github.com/tc39/proposal-array-filtering |
|
exportTypedArrayMethod('filterReject', function filterReject(callbackfn /* , thisArg */) { |
|
var list = $filterReject(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); |
|
return fromSpeciesAndList(this, list); |
|
}, true);
|
|
|