array-contains-all

Check if one array contains all the entries of another

Usage no npm install needed!

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

README

Check if an array contains all the entries of another array

Usage:

$ npm install --save array-contains-all
var a = [1, 2, 3];
var b = [1, 2];
if (arrayContainsAll(a, b)) {
    // Yeehaa, look ma, we did it!
}
if (arrayContainsAll(b, a)) {
    // Not today sucka!!!
}