CodeQL library for JavaScript/TypeScript
codeql/javascript-all 1.0.3-dev (changelog, source)

Member predicate Function::getName

Gets the name of this function if it has one, or a name inferred from its context.

For named functions such as function f() { ... }, this is just the declared name. For functions assigned to variables or properties (including class members), this is the name of the variable or property. If no meaningful name can be inferred, there is no result.

string getName()