array-remove-by-valuedeprecated

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

Usage no npm install needed!

<script type="module">
  import arrayRemoveByValue from 'https://cdn.skypack.dev/array-remove-by-value';
</script>

README

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