travel/admin/node_modules/fn-name
yaosen 242417d45d init... 2024-06-24 11:28:18 +08:00
..
index.js init... 2024-06-24 11:28:18 +08:00
license init... 2024-06-24 11:28:18 +08:00
package.json init... 2024-06-24 11:28:18 +08:00
readme.md init... 2024-06-24 11:28:18 +08:00

readme.md

fn-name Build Status

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

$ npm install --save fn-name

Usage

fnName(function foo() {});
//=> foo

License

MIT © Sindre Sorhus