UNPKG

566 BJavaScriptView Raw
1'use strict';
2// TODO: remove from `core-js@4`
3var $ = require('../internals/export');
4var $filterReject = require('../internals/array-iteration').filterReject;
5var 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, forced: true }, {
10 filterOut: function filterOut(callbackfn /* , thisArg */) {
11 return $filterReject(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
12 }
13});
14
15addToUnscopables('filterOut');