UNPKG

552 BJavaScriptView Raw
1var arrPrototype = Array.prototype;
2var splice = arrPrototype.splice;
3var indexOf = arrPrototype.indexOf;
4var pull = function (arr) {
5 var values = [];
6 for (var _i = 1; _i < arguments.length; _i++) {
7 values[_i - 1] = arguments[_i];
8 }
9 for (var i = 0; i < values.length; i++) {
10 var value = values[i];
11 var fromIndex = -1;
12 while ((fromIndex = indexOf.call(arr, value)) > -1) {
13 splice.call(arr, fromIndex, 1);
14 }
15 }
16 return arr;
17};
18export default pull;
19//# sourceMappingURL=pull.js.map
\No newline at end of file