function-name
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.
Install
Download manually or with a package-manager.
$ npm install --save fn-name
$ bower install --save function-name
$ component install sindresorhus/function-name
Usage
Node.js
var functionName = require('fn-name');
functionName(function foo() {});
Bower
<script src="bower_components/function-name/function-name.js"></script>
functionName(function foo() {});
License
MIT © Sindre Sorhus