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

Member predicate Function::describe

Gets a description of this function.

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, the result is “anonymous function”.

string describe()