just-remove

removes one array from another

Usage no npm install needed!

<script type="module">
  import justRemove from 'https://cdn.skypack.dev/just-remove';
</script>

README

just-remove

Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

🍦 Try it

npm install just-remove
yarn add just-remove

Removes one array from another

import remove from 'just-remove';

remove([1, 2, 3, 4, 5, 6], [1, 3, 6]); // [2, 4, 5]