source:
node_modules/ramda/src/internal/_arrayFromIterator.js
Last change on this file was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 191 bytes |
Rev | Line | |
---|---|---|
[d24f17c] | 1 | function _arrayFromIterator(iter) { |
2 | var list = []; | |
3 | var next; | |
4 | ||
5 | while (!(next = iter.next()).done) { | |
6 | list.push(next.value); | |
7 | } | |
8 | ||
9 | return list; | |
10 | } | |
11 | ||
12 | module.exports = _arrayFromIterator; |
Note:
See TracBrowser
for help on using the repository browser.