_array-from-iterable.js 172 Bytes
Newer Older
qianyuheng committed
1 2 3 4 5 6 7
var forOf = require('./_for-of');

module.exports = function (iter, ITERATOR) {
  var result = [];
  forOf(iter, false, result.push, result, ITERATOR);
  return result;
};