0 points

#15 Data Structures with JS examples: Sets - Frontend Weekly - Medium


dashboard

Fri May 29 2020 16:17:51 GMT+0000 (UTC)

Posted by @newborn #javascript

subset(secondSet) {
  if (secondSet.size() < this.size()) {
    return false
  }
  
  return this.values().every(value => secondSet.has(value))
}
content_copy Copy

https://medium.com/front-end-weekly/15-data-structures-with-js-examples-sets-5c0c7e52203