1.0.1 • Published 10 years ago

array-remove-by-value v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

array-remove-by-value

A simple function for removing values from arrays. They say you're not supposed to monkey patch, but I don't care.

Installation

npm install array-remove-by-value --save

Usage

Array.prototype.remove = require("array-remove-by-value")

var fruits = ['orange', 'apple', 'banana'];
fruits.remove('apple');
console.log(fruits)
// ['orange', 'banana']