src/index.js
function arrayContainsArray(superset, subset, some) {
  if (Array.isArray(superset) !== true) { throw new Error(`[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '${typeof superset}'`); }
  if (Array.isArray(subset) !== true) { throw new Error(`[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '${typeof subset}'`); }

  return subset[Boolean(some) && 'some' || 'every']((value) => (superset.indexOf(value) >= 0));
}
function arrayContainsArray(superset, subset, some) {
  if (Array.isArray(superset) !== true) { throw new Error(`[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '${typeof superset}'`); }
  if (Array.isArray(subset) !== true) { throw new Error(`[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '${typeof subset}'`); }

  return subset[Boolean(some) && 'some' || 'every']((value) => (superset.indexOf(value) >= 0));
}
function arrayContainsArray ( superset , subset , some ) { if ( Array . isArray ( superset ) !== true ) { throw new Error ( ` ${ typeof superset } ` ) ; } if ( Array . isArray ( subset ) !== true ) { throw new Error ( ` ${ typeof subset } ` ) ; } return subset [ Boolean ( some ) && 'some' || 'every' ] ( ( value ) => ( superset . indexOf ( value ) >= 0 ) ) ; }
Returns TRUE if the first specified array contains all elements
from the second one. FALSE otherwise.

@param {array} superset
@param {array} subset

@returns {boolean}
Returns TRUE if the first specified array contains all elements from the second one . FALSE otherwise .