This commit is contained in:
Ilya Kantor 2019-06-12 15:47:13 +03:00
parent 5498450646
commit 60585f2cb8

View file

@ -189,7 +189,7 @@ A `Set` is a collection of values, where each value may occur only once.
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.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`.