Check if an array includes all the elements of another array
npm install array-includes-all


Check if an Array includes all the elements of another array
``javascript
arrayIncludesAll(['a', 'b', 'c'], ['a', 'b']); //=> true
arrayIncludesAll(['a', 'b', 'c'], ['a', 'b', 'd']); //=> false
arrayIncludesAll([1, 2, NaN], [NaN]); //=> true
`
``
npm install array-includes-all
`javascript`
import arrayIncludesAll from 'array-includes-all';
array: Array Array
searchElements: (the elements to search for) integer
fromIndex: (the position in the array at which to begin searching) boolean
Return:
The API is similar to Array.prototype.includes.call, except that the second argument takes an array of the elements to search for instead of a single element.
`javascript``
arrayIncludesAll([1, 2], [1, 2]); //=> true
arrayIncludesAll([1, 2], [1, 2], 1); //=> false
ISC License © 2018 Shinnosuke Watanabe