You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
632 B
21 lines
632 B
|
4 months ago
|
"use strict";
|
||
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
|
var arrPrototype = Array.prototype;
|
||
|
|
var splice = arrPrototype.splice;
|
||
|
|
var indexOf = arrPrototype.indexOf;
|
||
|
|
var pull = function (arr) {
|
||
|
|
var values = [];
|
||
|
|
for (var _i = 1; _i < arguments.length; _i++) {
|
||
|
|
values[_i - 1] = arguments[_i];
|
||
|
|
}
|
||
|
|
for (var i = 0; i < values.length; i++) {
|
||
|
|
var value = values[i];
|
||
|
|
var fromIndex = -1;
|
||
|
|
while ((fromIndex = indexOf.call(arr, value)) > -1) {
|
||
|
|
splice.call(arr, fromIndex, 1);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
return arr;
|
||
|
|
};
|
||
|
|
exports.default = pull;
|
||
|
|
//# sourceMappingURL=pull.js.map
|