node-lib

@wtasnorg/node-lib


@wtasnorg/node-lib / newReplacerString

Function: newReplacerString()

newReplacerString(…oldnew): ReplacerString

Defined in: src/strings.ts:1589

NewReplacer returns a new Replacer from a list of old, new string pairs. Replacements are performed in the order they appear in the target string, without overlapping matches.

Parameters

oldnew

string[]

Alternating old/new string pairs.

Returns

ReplacerString

A new Replacer.