Fully renamed and updated everything, tagged, built
This commit is contained in:
10
snippets/functionName.md
Normal file
10
snippets/functionName.md
Normal file
@ -0,0 +1,10 @@
|
||||
### functionName
|
||||
|
||||
Logs the name of a function.
|
||||
|
||||
Use `console.debug()` and the `name` property of the passed method to log the method's name to the `debug` channel of the console.
|
||||
|
||||
```js
|
||||
const functionName = fn => (console.debug(fn.name), fn);
|
||||
// functionName(Math.max) -> max (logged in debug channel of console)
|
||||
```
|
||||
Reference in New Issue
Block a user