UNPKG

@nesvet/n

Version:
10 lines 269 B
export function removeAll(array, items) { let i, removed = 0; for (const item of items) while ((i = array.indexOf(item)) > -1) { array.splice(i, 1); removed++; } return removed; } //# sourceMappingURL=removeAll.js.map