Up to three of `paths`, and how many more there are.
(paths: string[])
| 1222 | |
| 1223 | /** Up to three of `paths`, and how many more there are. */ |
| 1224 | function samplePaths(paths: string[]): string { |
| 1225 | return paths.slice(0, 3).join(', ') + (paths.length > 3 ? ` (+${formatNumber(paths.length - 3)} more)` : ''); |
| 1226 | } |
| 1227 | |
| 1228 | /** A file size as people say it: "1.9 MB", "640 KB". */ |
| 1229 | function formatFileSize(bytes: number): string { |
no test coverage detected