removeByValue.js 211 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 module.exports = function(){ Array.prototype.removeByValue = function (search) { var index = this.indexOf(search); if (index !== -1) { this.splice(index, 1); } }; };