UNPKG

@tempots/std

Version:

Std library for TypeScript. Natural complement to the Tempo libraries.

12 lines (11 loc) 389 B
/** * Utility module to manipulate `RegExp` instances. */ /** * Map the function `f` on each occurance matched by the pattern. * @param f - The function to apply to each match. * @param pattern - The pattern to match. * @param subject - The string to search. * @public */ export declare const mapRegExp: (subject: string, pattern: RegExp, f: (...s: string[]) => string) => string;