UNPKG

@sgratzl/science

Version:

Scientific and statistical computing in JavaScript.

4 lines (3 loc) 108 B
export default function functor(v) { return typeof v === "function" ? v : function() { return v; }; };