/
eb
/
Surf
Обзор
Документация
Войти
/
eb
/
Surf
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/es5-ext/array/#/remove.js
17 строк
387 B
EvgeniyBudaev
Initial commit
17 фев 2020, 09:02
17 фев 2020, 09:02
bb6f06f
Код
Авторство
О чём код?
"use strict"; var indexOf = require("./e-index-of") , forEach = Array.prototype.forEach , splice = Array.prototype.splice; // eslint-disable-next-line no-unused-vars module.exports = function (itemToRemove/*, …item*/) { forEach.call( arguments, function (item) { var index = indexOf.call(this, item); if (index !== -1) splice.call(this, index, 1); }, this ); };