CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.9.0 (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()