-
Couldn't load subscription status.
- Fork 0
length
Subhajit Sahu edited this page Jul 29, 2022
·
2 revisions
Get the number of parameters of a function.
function length(x)
// x: a functionconst xfunction = require('extra-function');
xfunction.length(() => 0);
// → 0
xfunction.length((x, y) => 0);
// → 2