(chunks: Chunk[])
| 2 | import { deduplicateArray } from "../../util/index"; |
| 3 | |
| 4 | export function deduplicateChunks(chunks: Chunk[]): Chunk[] { |
| 5 | return deduplicateArray(chunks, (a, b) => { |
| 6 | return ( |
| 7 | a.filepath === b.filepath && |
| 8 | a.startLine === b.startLine && |
| 9 | a.endLine === b.endLine |
| 10 | ); |
| 11 | }); |
| 12 | } |
no test coverage detected