_arrayFromIterator.js 168 B

12345678910
  1. export default function _arrayFromIterator(iter) {
  2. var list = [];
  3. var next;
  4. while (!(next = iter.next()).done) {
  5. list.push(next.value);
  6. }
  7. return list;
  8. }