name-of-function
v1.0.2
Published
Get the name of a function.
Downloads
276
Maintainers
Readme
name-of-function
Get the name of a function. Returns undefined if functions don't have names.
Installation
npm install name-of-functionUsage
const getFunctionName = require("name-of-function")
getFunctionName(getFunctionName) // "getFunctionName"
getFunctionName(function e() {}) // "e"Tests
There are no tests.
