fix
This commit is contained in:
parent
5498450646
commit
60585f2cb8
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ A `Set` is a collection of values, where each value may occur only once.
|
||||||
|
|
||||||
Its main methods are:
|
Its main methods are:
|
||||||
|
|
||||||
- `new Set(iterable)` -- creates the set, optionally from an array of values (any iterable will do).
|
- `new Set(iterable)` -- creates the set, and if an `iterable` object is provided (usually an array), copies values from it into the set.
|
||||||
- `set.add(value)` -- adds a value, returns the set itself.
|
- `set.add(value)` -- adds a value, returns the set itself.
|
||||||
- `set.delete(value)` -- removes the value, returns `true` if `value` existed at the moment of the call, otherwise `false`.
|
- `set.delete(value)` -- removes the value, returns `true` if `value` existed at the moment of the call, otherwise `false`.
|
||||||
- `set.has(value)` -- returns `true` if the value exists in the set, otherwise `false`.
|
- `set.has(value)` -- returns `true` if the value exists in the set, otherwise `false`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue