Licence
MIT
Version
1.0.2
Deps
7
Size
2 kB
Vulns
0
Weekly
0
name-of-function
Get the name of a function. Returns undefined if functions don't have names.
Installation
npm install name-of-function
Usage
const getFunctionName = require("name-of-function")
getFunctionName(getFunctionName) // "getFunctionName"
getFunctionName(function e() {}) // "e"
Tests
There are no tests.