UNPKG
dashp
Version:
latest (0.11.0)
0.11.0
0.10.1
0.10.0
0.9.0
0.8.1
Utilities for monadic promises.
github.com/critocrito/dashp
critocrito/dashp
dashp
/
src
/
all.js
7 lines
(5 loc)
•
164 B
JavaScript
View Raw
1
2
3
4
5
6
7
import
{
of
}
from
"./Future"
;
import
nameFn
from
"./internal/namefn"
;
export
default
nameFn
(
"all"
,
(
xs
) =>
() =>
of
(xs).
then
(
(
ys
) =>
Promise
.
all
(ys.
map
(
of
))), );