@ginden/blinkstick-v2
Version:
Improved Blickstick API for Node.js
15 lines • 406 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.asyncCollect = asyncCollect;
/**
* @summary Collects all items from an iterable or async iterable into an array.
* @category Utils
*/
async function asyncCollect(iterable) {
const ret = [];
for await (const item of iterable) {
ret.push(item);
}
return ret;
}
//# sourceMappingURL=iterate.js.map