This package has been deprecated

Author message:

use remove-value package instead

array-remove-by-value

1.0.1 • Public • Published

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']

Package Sidebar

Install

npm i array-remove-by-value

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • zeke