UNPKG

locutus

Version:

Locutus other languages' standard libraries to JavaScript for fun and educational purposes

5 lines (4 loc) 307 B
type ReSubnReplacement = string | ((match: string, ...groups: Array<string | undefined>) => string); type ReSubnFlags = number | string; export declare function subn(pattern: string | RegExp, replacement: ReSubnReplacement, source: string, count?: number, flags?: ReSubnFlags): [string, number]; export {};