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
/
start-with-async.js
14 lines
(11 loc)
•
270 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
startWithAsync
=
void
0
;
const
startWithAsync
= value =>
iterable
=>
({
async
*[
Symbol
.
asyncIterator
]() {
yield
value;
yield
* iterable; } });
exports
.
startWithAsync
= startWithAsync;