hz-zhhq-web/node_modules/fn-name
zzyuan 03ac614884 前端提交3 2025-02-25 13:45:28 +08:00
..
index.js 前端提交3 2025-02-25 13:45:28 +08:00
license 前端提交3 2025-02-25 13:45:28 +08:00
package.json 前端提交3 2025-02-25 13:45:28 +08:00
readme.md 前端提交3 2025-02-25 13:45:28 +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