(array1: Array<T>, array2: Array<T>)
| 10 | import type { QueryClient } from './queryClient' |
| 11 | |
| 12 | function difference<T>(array1: Array<T>, array2: Array<T>): Array<T> { |
| 13 | const excludeSet = new Set(array2) |
| 14 | return array1.filter((x) => !excludeSet.has(x)) |
| 15 | } |
| 16 | |
| 17 | function replaceAt<T>(array: Array<T>, index: number, value: T): Array<T> { |
| 18 | const copy = array.slice(0) |
no outgoing calls
no test coverage detected
searching dependent graphs…