(o: Partial<Record<K, any>>)
| 30 | // This util is for cases where the key is a union of a few possible keys and we |
| 31 | // want the resulting array properly typed. |
| 32 | export function keys<K extends string | number | symbol>(o: Partial<Record<K, any>>): K[] { |
| 33 | return Object.keys(o) as K[]; |
| 34 | } |
| 35 | |
| 36 | export function unique<V>(arr: V[]): V[] { |
| 37 | return [...new Set(arr)]; |