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

Member predicate StringOps::ConcatenationRoot::getConstantStringParts

Returns the concatenation of all constant operands in this concatenation, ignoring the non-constant parts entirely.

For example, for the following concatenation

`Hello ${person}, how are you?`

the result is "Hello , how are you?"

string getConstantStringParts()