( value: T )
| 92 | } |
| 93 | |
| 94 | export function ensureQueryKeyArray<T extends QueryKey>( |
| 95 | value: T |
| 96 | ): EnsuredQueryKey<T> { |
| 97 | return (Array.isArray(value) |
| 98 | ? value |
| 99 | : ([value] as unknown)) as EnsuredQueryKey<T> |
| 100 | } |
| 101 | |
| 102 | export function difference<T>(array1: T[], array2: T[]): T[] { |
| 103 | return array1.filter(x => array2.indexOf(x) === -1) |
no outgoing calls
no test coverage detected
searching dependent graphs…