UNPKG

@ginden/blinkstick-v2

Version:
15 lines 406 B
"use strict"; 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