0 points

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


dashboard

Fri May 29 2020 16:08:12 GMT+0000 (UTC)

Posted by @newborn #javascript

add(item){
  if(this.has(item)){
    return false
  }
  items[item] = item
  size++
  return true
}
content_copy Copy

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