diff --git a/README.md b/README.md index 23fb763..8068d1c 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,11 @@ const functionArguments = require('function-arguments') ### [functionArguments](index.js#L33) > Get function arguments names. +**Params** + +* `fn` **{Function}**: Function from which to get arguments names. +* `returns` **{Array}** + **Example** ```js @@ -38,11 +43,6 @@ console.log(fnArgs(function * (a ,b, c) {})) // => [ 'a', 'b', 'c' ] console.log(fnArgs(function * named (a ,b, c) {})) // => [ 'a', 'b', 'c' ] ``` -**Params** - -* `fn` **{Function}**: Function from which to get arguments names. -* `returns` **{Array}** - ### Works when using comments > As it works for ES2015, it also works if you use comments in weird places.