node-lib

@wtasnorg/node-lib


@wtasnorg/node-lib / replaceAllString

Function: replaceAllString()

replaceAllString(s, old, newStr): string

Defined in: src/strings.ts:757

ReplaceAll returns a copy of the string s with all non-overlapping instances of old replaced by newStr.

Parameters

s

string

Input string.

old

string

String to replace.

newStr

string

Replacement string.

Returns

string

String with all replacements applied.