This commit is contained in:
Stephen Franceschelli
2019-07-15 13:24:14 -04:00
parent e3283467a1
commit 9ea2679ca7
7043 changed files with 0 additions and 1866383 deletions

View File

@@ -1,18 +0,0 @@
/**
* 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;