UNPKG
doevisualizations
Version:
latest (1.16.34)
2.0.1
2.0.0
1.16.34
1.16.33
1.16.31
1.16.30
1.16.29
1.16.28
1.16.27
1.16.26
1.16.25
1.16.24
1.16.23
1.16.22
1.16.21
1.16.20
1.16.19
1.16.18
1.16.17
1.16.16
1.16.15
1.16.14
1.16.12
1.16.11
1.16.10
1.16.9
1.16.8
1.16.7
1.16.6
1.16.5
1.16.4
1.16.3
1.16.2
1.16.1
1.15.19
1.15.18
1.15.17
1.15.16
1.15.15
1.15.14
1.15.13
1.15.12
1.15.11
1.15.10
1.15.9
1.15.8
1.15.7
1.15.6
1.15.5
1.15.4
1.15.3
1.15.2
1.15.1
1.15.0
1.14.18
1.14.17
1.14.16
1.14.15
1.14.14
1.14.13
1.14.12
1.14.11
1.14.10
1.14.9
1.14.8
1.14.7
1.14.6
1.14.5
1.14.4
1.14.3
1.14.2
1.14.1
1.14.0
1.12.14
1.12.12
1.12.11
1.12.10
1.12.9
1.12.7
1.12.6
1.12.5
1.12.4
1.12.3
1.12.1
1.11.11
1.11.10
1.11.9
1.11.8
1.11.7
1.11.6
1.11.5
1.11.3
1.11.2
1.11.1
1.10.12
1.10.11
1.10.10
1.10.9
1.10.8
1.10.7
1.10.6
1.10.5
1.10.4
1.10.3
1.10.2
1.10.1
1.9.11
1.9.10
1.9.9
1.9.8
1.9.7
1.9.6
1.9.5
1.9.3
1.9.2
1.9.1
1.9.0
1.8.1
1.8.0
1.7.9
1.7.8
1.7.7
1.7.6
1.7.5
1.7.3
1.7.2
1.7.1
1.7.0
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.0
1.2.0
1.1.1
1.0.1
1.0.0
Data Visualization Library based on RequireJS and D3.js (v4+)
doevisualizations
/
doeVisualization
/
node_modules
/
d3-hierarchy
/
src
/
accessors.js
9 lines
(7 loc)
•
166 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
export
function
optional
(
f
) {
return
f ==
null
?
null
:
required
(f); }
export
function
required
(
f
) {
if
(
typeof
f !==
"function"
)
throw
new
Error
;
return
f; }