(matches: string[])
| 432 | } |
| 433 | |
| 434 | const getIndices = (matches: string[]) => { |
| 435 | let index = 0; |
| 436 | return matches.map((match) => { |
| 437 | const valueIndex = value.indexOf(match, index); |
| 438 | index = valueIndex + match.length; |
| 439 | return {match, index: valueIndex}; |
| 440 | }); |
| 441 | }; |
| 442 | |
| 443 | const matches: BgImageMatches[] = |
| 444 | (gradients.map((i) => ({type: 'gradient', ...i})) as BgImageMatches[]) |
no outgoing calls
no test coverage detected