initial commit: scaffolding

This commit is contained in:
Pinapelz
2025-06-28 17:43:56 -07:00
commit e4fa1e69e7
9624 changed files with 365779 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;