UNPKG
sprae
Version:
latest (13.3.8)
13.3.8
13.3.7
13.3.6
13.3.5
13.3.4
13.3.3
13.3.2
13.3.1
13.3.0
13.2.2
13.2.1
13.2.0
13.1.3
13.1.2
13.1.1
13.1.0
13.0.1
13.0.0
12.4.17
12.4.16
12.4.15
12.4.14
12.4.13
12.4.12
12.4.11
12.4.10
12.4.9
12.4.8
12.4.7
12.4.6
12.4.5
12.4.4
12.4.3
12.4.2
12.4.1
12.4.0
12.3.9
12.3.8
12.3.7
12.3.6
12.3.5
12.3.4
12.3.3
12.3.2
12.3.1
12.3.0
12.2.5
12.2.4
12.2.3
12.2.2
12.2.1
12.2.0
12.1.0
12.0.2
12.0.1
12.0.0
11.6.0
11.5.7
11.5.6
11.5.5
11.5.4
11.5.3
11.5.2
11.5.1
11.5.0
11.4.0
11.3.0
11.2.6
11.2.5
11.2.4
11.2.3
11.2.2
11.2.1
11.2.0
11.1.3
11.1.2
11.1.1
11.1.0
11.0.8
11.0.7
11.0.6
11.0.5
11.0.4
11.0.3
11.0.2
11.0.1
11.0.0
10.13.0
10.12.3
10.12.2
10.12.1
10.12.0
10.11.2
10.11.0
10.10.6
10.10.5
10.10.4
10.10.3
10.10.2
10.10.1
10.10.0
10.9.4
10.9.3
10.9.2
10.9.1
10.9.0
10.8.2
10.8.1
10.8.0
10.7.0
10.6.3
10.6.2
10.6.1
10.6.0
10.5.0
10.4.1
10.4.0
10.3.0
10.2.0
10.1.5
10.1.4
10.1.3
10.1.2
10.1.1
10.1.0
10.0.1
10.0.0
9.1.1
9.1.0
9.0.1
9.0.0
8.1.3
8.1.2
8.1.1
8.1.0
8.0.3
8.0.2
8.0.1
8.0.0
7.0.0
6.1.2
6.1.1
6.1.0
6.0.0
5.3.0
5.2.0
5.1.0
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
4.0.0
3.1.0
3.0.1
3.0.0
2.14.2
2.14.1
2.14.0
2.13.0
2.12.4
2.12.3
2.12.2
2.12.1
2.12.0
2.11.2
2.11.1
2.11.0
2.10.2
2.10.1
2.10.0
2.8.4
2.8.3
2.8.2
2.8.1
2.8.0
2.7.1
2.7.0
2.6.1
2.6.0
2.5.5
2.5.4
2.5.3
2.5.2
2.5.1
2.5.0
2.4.0
2.3.2
2.3.1
2.3.0
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.2
2.1.1
2.1.0
2.0.0
1.0.0
0.1.0
0.0.0
DOM microhydration
github.com/dy/sprae
dy/sprae
sprae
/
directive
/
fx.js
7 lines
(6 loc)
•
222 B
JavaScript
View Raw
1
2
3
4
5
6
7
/** * Effect directive - runs side effects. * Calls function result if expression evaluates to a function. *
@returns
{(fn: any) => any} Update function */
export
default
() => (
fn
) =>
typeof
fn
=== '
function
' &&
fn
(
)