CodeQL library for JavaScript
Search

Member predicate CallSignatureType::isOptionalParameter

Holds if the nth parameter is declared optional with the ? suffix or is the rest parameter.

Note that rest parameters are not considered optional in this sense.

predicate isOptionalParameter(int n)