( obj: T, )
| 181 | |
| 182 | /** typesafe Object.keys */ |
| 183 | export function objectKeys<T extends Record<string, unknown>>( |
| 184 | obj: T, |
| 185 | ): (keyof T)[] { |
| 186 | return Object.keys(obj) as (keyof T)[]; |
| 187 | } |
| 188 | |
| 189 | export function filterDefinedObjectValues<T>( |
| 190 | obj: Record<string, T | null | undefined>, |
no outgoing calls
no test coverage detected