Sha256: 26dcc19f3db503b662036a74dad3cfbc2c0a5c747c5d21c75f4b1ce09c6cca1d
Contents?: true
Size: 331 Bytes
Versions: 69
Compression:
Stored size: 331 Bytes
Contents
var indexOf = require('./indexOf'); /** * Remove all instances of an item from array. */ function removeAll(arr, item){ var idx = indexOf(arr, item); while (idx !== -1) { arr.splice(idx, 1); idx = indexOf(arr, item, idx); } } module.exports = removeAll;
Version data entries
69 entries across 69 versions & 2 rubygems