|
hace 1 año | |
---|---|---|
.. | ||
lib | hace 1 año | |
README.md | hace 1 año | |
package.json | hace 1 año |
Function that returns the number of arguments that a function takes.
import getFunctionArity from "@babel/helper-get-function-arity";
function wrap(state, method, id, scope) {
// ...
if (!t.isFunction(method)) {
return false;
}
const argumentsLength = getFunctionArity(method);
// ...
}