( text: string, regex: RegExp, mapfn: (v: RegExpMatchArray, k: number) => T )
| 31 | export const leftAnchored = makeCache(_leftAnchored); |
| 32 | |
| 33 | export function matchAll<T>( |
| 34 | text: string, |
| 35 | regex: RegExp, |
| 36 | mapfn: (v: RegExpMatchArray, k: number) => T |
| 37 | ) { |
| 38 | return Array.from(text.matchAll(regex), mapfn); |
| 39 | } |
no outgoing calls
no test coverage detected