login/node_modules/lodash/_iteratorToArray.js
Rakesh Kumar 807bb60301
Update build files and add node_modules (#54)
* update build files

* add node_modules
2020-09-23 12:15:33 +05:30

18 lines
360 B
JavaScript

/**
* Converts `iterator` to an array.
*
* @private
* @param {Object} iterator The iterator to convert.
* @returns {Array} Returns the converted array.
*/
function iteratorToArray(iterator) {
var data,
result = [];
while (!(data = iterator.next()).done) {
result.push(data.value);
}
return result;
}
module.exports = iteratorToArray;