mirror of https://github.com/jkjoy/sunpeiwen.git
8 lines
172 B
JavaScript
8 lines
172 B
JavaScript
|
var forOf = require('./_for-of');
|
||
|
|
||
|
module.exports = function (iter, ITERATOR) {
|
||
|
var result = [];
|
||
|
forOf(iter, false, result.push, result, ITERATOR);
|
||
|
return result;
|
||
|
};
|