Last change
on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
716 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | 'use strict';
|
---|
| 2 | var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
|
---|
| 3 | var $filterReject = require('../internals/array-iteration').filterReject;
|
---|
| 4 | var fromSpeciesAndList = require('../internals/typed-array-from-species-and-list');
|
---|
| 5 |
|
---|
| 6 | var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
---|
| 7 | var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
---|
| 8 |
|
---|
| 9 | // `%TypedArray%.prototype.filterReject` method
|
---|
| 10 | // https://github.com/tc39/proposal-array-filtering
|
---|
| 11 | exportTypedArrayMethod('filterReject', function filterReject(callbackfn /* , thisArg */) {
|
---|
| 12 | var list = $filterReject(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
---|
| 13 | return fromSpeciesAndList(this, list);
|
---|
| 14 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.