Skip to content

replaceAll<CapturedGroupArguments>

Replaces all occurrences of a search string or pattern with the results of an replacer function.

Import:

import { replaceAll } from '@mnaoumov/typescript-lib/string';

Signature:

function replaceAll(params: ReplaceAllParams<CapturedGroupArguments>): string

Parameters:

Parameter Type Description
params ReplaceAllParams<CapturedGroupArguments> The parameters.

Returns: string — The string with all replacements made.


Links to this page: