Remove from array
Simply remove an item from an array.
Installation
npm install --save remove-from-array
Usage
const removeFromArray = let array = 1 2 3 4 console // [1, 3]
API
removeFromArray(array, item)
Removes the item item
from the array array
. Throws a RangeError
if the item cannot be found.