aggiunti componenti bower/node

This commit is contained in:
Samuele E. Locatelli
2016-10-03 10:53:40 +02:00
parent 2b20f8fd94
commit 77f390460f
2590 changed files with 343529 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
/**
* 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;