@amphibian/remove-from-array

remove an index from an array

Usage no npm install needed!

<script type="module">
  import amphibianRemoveFromArray from 'https://cdn.skypack.dev/@amphibian/remove-from-array';
</script>

README

remove-from-array

build status

remove an index from an array

npm install @amphibian/remove-from-array
var removeFromArray = require('@amphibian/remove-from-array');
var mammals = ['cat', 'bird', 'dog', 'horse', 'fish'];

removeFromArray('fish', mammals);
removeFromArray('bird', mammals);

console.log(mammals); // > ['cat', 'dog', 'horse']