lib/utils/media-query.js
function arrayContainsAllElementsOfArray(smaller, larger) {
  return smaller.reduce((prev, element) => {
    return prev && larger.indexOf(element) >= 0;
  }, true);
}
function arrayContainsAllElementsOfArray(smaller, larger) {
  return smaller.reduce((prev, element) => {
    return prev && larger.indexOf(element) >= 0;
  }, true);
}
function arrayContainsAllElementsOfArray ( smaller , larger ) { return smaller . reduce ( ( prev , element ) => { return prev && larger . indexOf ( element ) >= 0 ; } , true ) ; }
Verify that one array contains all the elements of another

@example
const smaller = ['a'];
const larger = ['b'];

arrayContainsAllElementsOfArray(smaller, larger);
// => true

@param {array} smaller the array to ensure is contained by the other
@param {array} larger the array to ensure contains the other
@return {boolean}
Verify that one array contains all the elements of another