UNPKG
@nepwork/dashboards
Version:
latest (0.0.2)
0.0.2
Dashboards for emergencies and monitoring
github.com/nepwork/admin-ui
nepwork/admin-ui
@nepwork/dashboards
/
hgraph
/
node_modules
/
d3-geo
/
src
/
compose.js
13 lines
(9 loc)
•
250 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
export
default
function
(
a, b
) {
function
compose
(
x, y
) {
return
x =
a
(x, y),
b
(x[
0
], x[
1
]); }
if
(a.
invert
&& b.
invert
) compose.
invert
=
function
(
x, y
) {
return
x = b.
invert
(x, y), x && a.
invert
(x[
0
], x[
1
]); };
return
compose; }