New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

array-remove-by-value

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-remove-by-value

A simple function for removing values from arrays

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
 
Created
Source

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'];
a.remove('apple');
console.log(a)
// ['orange', 'banana']

Keywords

array

FAQs

Package last updated on 02 Sep 2014

Related posts