bloom-layout
Version:
layout components used in bloom packages
22 lines (15 loc) • 543 B
Markdown
is considered an argument can be found at [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/length)
```javascript
import getFunctionArity from "@babel/helper-get-function-arity";
function wrap(state, method, id, scope) {
// ...
if (!t.isFunction(method)) {
return false;
}
const argumentsLength = getFunctionArity(method);
// ...
}
```
Function that returns the number of arguments that a function takes.
* Examples of what