(isMatch: boolean, slice: string)
| 28 | const slices: StringSlice[] = []; |
| 29 | |
| 30 | const addSlice = (isMatch: boolean, slice: string) => { |
| 31 | if (slice.length > 0) { |
| 32 | slices.push({ isMatch, slice }); |
| 33 | } |
| 34 | }; |
| 35 | |
| 36 | const addEllipsis = () => { |
| 37 | addSlice(false, "…"); |
no outgoing calls
no test coverage detected