CodeQL library for JavaScript
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()