UNPKG

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