isSubset (aSourceSet,aSetTarget) {
    console.log ("isSubset ()");

    for (let i=0;i<aSetTarget.length;i++) {
      let aTargetEntry=aSetTarget [i];

      // If one of the elements in aSetTarget isn't in aSetSource then aSetTarget isn't a subset         
      if (this.isElement (aSourceSet,aTargetEntry)==false) {
        return (false);
      }
    }

    return (true);
  }
/**
   * Here we evaluate if the set in aSetTarget represents a subset of the set in aSetSource
   */
Here we evaluate if the set in aSetTarget represents a subset of the set in aSetSource
Here we evaluate if the set in aSetTarget represents a subset of the set in aSetSource
isSubset (aSourceSet,aSetTarget) {
    console.log ("isSubset ()");
    for (let i=0;i<aSetTarget.length;i++) {
      let aTargetEntry=aSetTarget [i];
      if (this.isElement (aSourceSet,aTargetEntry)==false) {
        return (false);
      }
    }
    return (true);
  }
isSubset ( aSourceSet , aSetTarget ) { console . log ( "isSubset ()" ) ; for ( let i = 0 ; i < aSetTarget . length ; i ++ ) { let aTargetEntry = aSetTarget [ i ] ; if ( this . isElement ( aSourceSet , aTargetEntry ) == false ) { return ( false ) ; } } return ( true ) ; }
Here we evaluate if the set in aSetTarget represents a subset of the set in aSetSource
Here we evaluate if the set in aSetTarget represents a subset of the set in aSetSource
// If one of the elements in aSetTarget isn't in aSetSource then aSetTarget isn't a subset         