Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
552 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | // TODO: remove from `core-js@4`
|
---|
3 | var $ = require('../internals/export');
|
---|
4 | var $filterReject = require('../internals/array-iteration').filterReject;
|
---|
5 | var addToUnscopables = require('../internals/add-to-unscopables');
|
---|
6 |
|
---|
7 | // `Array.prototype.filterOut` method
|
---|
8 | // https://github.com/tc39/proposal-array-filtering
|
---|
9 | $({ target: 'Array', proto: true }, {
|
---|
10 | filterOut: function filterOut(callbackfn /* , thisArg */) {
|
---|
11 | return $filterReject(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
---|
12 | }
|
---|
13 | });
|
---|
14 |
|
---|
15 | addToUnscopables('filterOut');
|
---|
Note:
See
TracBrowser
for help on using the repository browser.