Skip to content

Latest commit

 

History

History
95 lines (47 loc) · 1.11 KB

File metadata and controls

95 lines (47 loc) · 1.11 KB

Set.Set

add(item)

Add an item to the set

Arguments

  1. item (*): an item to add to the set

addAll(items)

Add multiple items to the set

Arguments

  1. items (Array): an array of items to be added to the set

constructor([items])

Arguments

  1. [items] (Array): an array of items to add to the set

remove(item)

Remove an item from the set

Arguments

  1. item (*): the item to remove from the set

Returns

(boolean): true if the item was successfully removed, false if not


size

(number): The number of items in the set