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

Member predicate StringReplaceCall::isGlobal

Holds if this is a global replacement, that is, the first argument is a regular expression with the g flag, or this is a call to .replaceAll().

predicate isGlobal()