(file: File)
| 57 | * Check if a file is a PDF |
| 58 | */ |
| 59 | export function isPdfFile(file: File): boolean { |
| 60 | return file.type === "application/pdf" || file.name.endsWith(".pdf") |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * Check if a file is a text file |
no outgoing calls
no test coverage detected