array-without

Creates an array with excluded values.

Usage no npm install needed!

<script type="module">
  import arrayWithout from 'https://cdn.skypack.dev/array-without';
</script>

README

array-without

Creates an array with excluded values.

NPM

Install

npm install array-without
bower install array-without

Usage

var without = require('array-without');

console.log(without(['a','b','c'], 'c')); // ['a','b']
console.log(without(['a','b','c'], ['b','c'])); // ['a']
console.log(without(['a','b','c'], 'b','c')); // ['a']
console.log(without(['a','b','c'], {})); // ['a','b','c']

Test

npm test

License

MIT