Skip to content

Commit 60585f2

Browse files
committed
fix
1 parent 5498450 commit 60585f2

File tree

1 file changed

+1
-1
lines changed
  • 1-js/05-data-types/07-map-set-weakmap-weakset

1 file changed

+1
-1
lines changed

1-js/05-data-types/07-map-set-weakmap-weakset/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ A `Set` is a collection of values, where each value may occur only once.
189189
190190
Its main methods are:
191191
192-
- `new Set(iterable)` -- creates the set, optionally from an array of values (any iterable will do).
192+
- `new Set(iterable)` -- creates the set, and if an `iterable` object is provided (usually an array), copies values from it into the set.
193193
- `set.add(value)` -- adds a value, returns the set itself.
194194
- `set.delete(value)` -- removes the value, returns `true` if `value` existed at the moment of the call, otherwise `false`.
195195
- `set.has(value)` -- returns `true` if the value exists in the set, otherwise `false`.

0 commit comments

Comments
 (0)