Apply new format to snippets and template
This commit is contained in:
@ -5,7 +5,7 @@ tags: function,beginner
|
||||
|
||||
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.
|
||||
- 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);
|
||||
|
||||
Reference in New Issue
Block a user