diff options
Diffstat (limited to 'node_modules/@babel/helper-get-function-arity/README.md')
| -rw-r--r-- | node_modules/@babel/helper-get-function-arity/README.md | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/node_modules/@babel/helper-get-function-arity/README.md b/node_modules/@babel/helper-get-function-arity/README.md deleted file mode 100644 index d341c9ce..00000000 --- a/node_modules/@babel/helper-get-function-arity/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# @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); - - // ... -} -``` |
