(x: T | null | undefined)
| 1 | import { type Entries } from "type-fest"; |
| 2 | |
| 3 | export const truthyFilter = <T>(x: T | null | undefined): x is T => Boolean(x); |
| 4 | |
| 5 | export const formatFileSize = (bytes: number, decimals = 2) => { |
| 6 | if (bytes === 0) return "0 Bytes"; |
nothing calls this directly
no outgoing calls
no test coverage detected