UNPKG
iterama
Version:
latest (0.6.1)
0.6.1
0.6.0
0.5.0
0.4.1
0.4.0
0.3.0
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
Composable functional (async) iterable helpers
github.com/nextools/metarepo
nextools/metarepo
iterama
/
node
/
to-array-async.js
16 lines
(12 loc)
•
286 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
toArrayAsync
=
void
0
;
const
toArrayAsync
=
async
iterable => {
const
result = [];
for
await
(
const
value
of
iterable) { result.
push
(value); }
return
result; };
exports
.
toArrayAsync
= toArrayAsync;