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

Member predicate Function::hasBody

Holds if this function has a body.

A TypeScript function has no body if it is ambient, abstract, or an overload signature.

A JavaScript function always has a body.

predicate hasBody()