|
il y a 3 jours | |
---|---|---|
.. | ||
index.js | il y a 3 jours | |
license | il y a 3 jours | |
package.json | il y a 3 jours | |
readme.md | il y a 3 jours |
Get the name of a named function
There is a non-standard name property on functions, but it's not supported in all browsers.
This module tries that property then falls back to extracting the name from the function source.
$ npm install --save fn-name
fnName(function foo() {});
//=> foo
MIT © Sindre Sorhus