UNPKG
@sgratzl/science
Version:
latest (2.0.0)
2.0.0
Scientific and statistical computing in JavaScript.
github.com/sgratzl/science.js
sgratzl/science.js
@sgratzl/science
/
src
/
core
/
functor.js
4 lines
(3 loc)
•
108 B
JavaScript
View Raw
1
2
3
4
export
default
function
functor
(
v
) {
return
typeof
v ===
"function"
? v :
function
(
) {
return
v; }; };