Skip to content

Latest commit

 

History

History
110 lines (54 loc) · 1.26 KB

Set.md

File metadata and controls

110 lines (54 loc) · 1.26 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 (*[]): an array of items to be added to the set

clear()

Remove all items from the set


constructor([items])

Arguments

  1. [items] (*[]): 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