You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 8, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -296,10 +296,9 @@ function* naturals() {
296
296
naturals().find(v=> v >1); // 2
297
297
```
298
298
299
-
### `.from(object)`
299
+
### `Iterator.from(object)`
300
300
301
-
`.from` takes an object as an argument. This method allows wrapping "iterator-like" objects with an
302
-
iterator.
301
+
`.from` is a _static_ method (unlike the others listed above) which takes an object as an argument. This method allows wrapping "iterator-like" objects with an iterator.
303
302
304
303
Returns the object if it is already an iterator, returns a wrapping iterator if the passed object
0 commit comments