Sha256: 339a8f14293a5aeb92c3ba06327dde476ea622090b5e9027a459d251101c030e
Contents?: true
Size: 543 Bytes
Versions: 1
Compression:
Stored size: 543 Bytes
Contents
# @babel/helper-get-function-arity Function that returns the number of arguments that a function takes. * Examples of what 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) ## Usage ```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); // ... } ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
condenser-0.0.4 | lib/condenser/processors/node_modules/@babel/helper-get-function-arity/README.md |