(val: T | T[])
| 1 | import { platform } from 'node:os'; |
| 2 | |
| 3 | export function toArray<T>(val: T | T[]): T[] { |
| 4 | return Array.isArray(val) ? val : [val]; |
| 5 | } |
| 6 | |
| 7 | export function objectToKeys<T extends object>(obj: T) { |
| 8 | return Object.keys(obj) as (keyof T)[]; |
no outgoing calls
no test coverage detected