1 | "use strict";
|
2 | exports.__esModule = true;
|
3 | var arrPrototype = Array.prototype;
|
4 | var splice = arrPrototype.splice;
|
5 | var indexOf = arrPrototype.indexOf;
|
6 | var 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 | };
|
20 | exports["default"] = pull;
|
21 |
|
\ | No newline at end of file |