@serenity-is/corelib / replaceAll

Function: replaceAll()

replaceAll(str, find, replace): string

Defined in: src/compat/strings-compat.ts:112

Replaces all occurrences of the search string with the replacement string.

Parameters

str

string

String to replace.

find

string

String to find.

replace

string

String to replace with.

Returns

string

Replaced string.