| 
				
					 | 
			vor 3 Wochen | |
|---|---|---|
| .. | ||
| lib | vor 3 Wochen | |
| README.md | vor 3 Wochen | |
| package.json | vor 3 Wochen | |
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);
  // ...
}