node_modules/truffle/build/11.bundled.js
// Note: Duplicates are ignored if testing for inclusion instead of sameness.
Duplicates are ignored if testing for inclusion instead of sameness.
Duplicates are ignored if testing for inclusion instead of sameness .
function isSubsetOf(subset, superset, cmp, contains, ordered) {
    if (!contains) {
      if (subset.length !== superset.length) return false;
      superset = superset.slice();
    }
    return subset.every(function(elem, idx) {
      if (ordered) return cmp ? cmp(elem, superset[idx]) : elem === superset[idx];
      if (!cmp) {
        var matchIdx = superset.indexOf(elem);
        if (matchIdx === -1) return false;
        if (!contains) superset.splice(matchIdx, 1);
        return true;
      }
      return superset.some(function(elem2, matchIdx) {
        if (!cmp(elem, elem2)) return false;
        if (!contains) superset.splice(matchIdx, 1);
        return true;
      });
    });
  }
function isSubsetOf ( subset , superset , cmp , contains , ordered ) { if ( ! contains ) { if ( subset . length !== superset . length ) return false ; superset = superset . slice ( ) ; } return subset . every ( function ( elem , idx ) { if ( ordered ) return cmp ? cmp ( elem , superset [ idx ] ) : elem === superset [ idx ] ; if ( ! cmp ) { var matchIdx = superset . indexOf ( elem ) ; if ( matchIdx === - 1 ) return false ; if ( ! contains ) superset . splice ( matchIdx , 1 ) ; return true ; } return superset . some ( function ( elem2 , matchIdx ) { if ( ! cmp ( elem , elem2 ) ) return false ; if ( ! contains ) superset . splice ( matchIdx , 1 ) ; return true ; } ) ; } ) ; }
Note: Duplicates are ignored if testing for inclusion instead of sameness.
Note : Duplicates are ignored if testing for inclusion instead of sameness .
// Remove match from superset so not counted twice if duplicate in subset. // Remove match from superset so not counted twice if duplicate in subset.