(path: fs.PathLike)
| 686 | } |
| 687 | |
| 688 | export function isFileSafe(path: fs.PathLike): boolean { |
| 689 | return !!statSyncSafe(path)?.isFile(); |
| 690 | } |
| 691 | |
| 692 | // Keeps only the unique entries in an array, optionally with a custom comparison function |
| 693 | export function uniqueEntries<T>(array: T[], isIdentical: (x: T, y: T) => boolean = (x, y) => (x === y)){ |
no test coverage detected