Merge pull request #132 from b117020/master

method name
This commit is contained in:
Angelos Chalaris
2017-12-16 14:37:52 +02:00
committed by GitHub

View File

@ -0,0 +1,8 @@
### Log method name
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 methodName = fn => (console.debug(fn.name), fn);
// methodName(methodName) -> methodName (logged in debug channel of console)
```