| 
				
					 | 
			2 سال پیش | |
|---|---|---|
| .. | ||
| lib | 2 سال پیش | |
| README.md | 2 سال پیش | |
| package.json | 2 سال پیش | |
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);
  // ...
}