CodeQL library for JavaScript
codeql/javascript-all 0.6.2 ( changelog , source )

Member predicate PathExpr :: getExtension

Gets the extension of the folder or file this path refers to, that is, the suffix of the base name starting at the last dot character, if there is one.

Has no result if the base name does not contain a dot.

string getExtension ( )