]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/vim-mode/node_modules/grim/node_modules/emissary/node_modules/es6-weak-map/node_modules/es5-ext/array/#/remove.js
dcf843313d5fcbfc186f64d3a7f26b88bd981e2a
[rbdr/dotfiles] / atom / packages / vim-mode / node_modules / grim / node_modules / emissary / node_modules / es6-weak-map / node_modules / es5-ext / array / # / remove.js
1 'use strict';
2
3 var indexOf = require('./e-index-of')
4
5 , forEach = Array.prototype.forEach, splice = Array.prototype.splice;
6
7 module.exports = function (item/*, …item*/) {
8 forEach.call(arguments, function (item) {
9 var index = indexOf.call(this, item);
10 if (index !== -1) splice.call(this, index, 1);
11 }, this);
12 };