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