Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 112 Bytes

function-name.md

File metadata and controls

9 lines (7 loc) · 112 Bytes

Get the name of a function (as a string)

function foo () {
  // ...
}

console.log(foo.name) // "foo"