source: trip-planner-front/node_modules/core-js/modules/esnext.typed-array.filter-out.js@ 6c1585f

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: 740 bytes
Line 
1'use strict';
2// TODO: Remove from `core-js@4`
3var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
4var $filterReject = require('../internals/array-iteration').filterReject;
5var fromSpeciesAndList = require('../internals/typed-array-from-species-and-list');
6
7var aTypedArray = ArrayBufferViewCore.aTypedArray;
8var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
9
10// `%TypedArray%.prototype.filterOut` method
11// https://github.com/tc39/proposal-array-filtering
12exportTypedArrayMethod('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.