replaceAllAsync<ReplaceGroupArgs>
Asynchronously replaces all occurrences of a search string or pattern with the results of an asynchronous replacer function.
Import:
import { replaceAllAsync } from 'obsidian-dev-utils/string';Signature:
function replaceAllAsync(params: ReplaceAllAsyncParams<ReplaceGroupArgs>): Promise<string>Parameters:
| Parameter | Type | Description |
|---|---|---|
params | ReplaceAllAsyncParams<ReplaceGroupArgs> | The parameters. |
Returns: Promise<string> — A Promise that resolves to the string with all replacements made.
Links to this page: