Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

partialMatchKey.md

26 lines425 Bytes

1---
2id: partialMatchKey
3title: partialMatchKey
4---
5​
6```ts
7function partialMatchKey(a: readonly unknown[], b: readonly unknown[]): boolean;
8```
9​
10Defined in: [packages/query-core/src/utils.ts:300](https://github.com/TanStack/query/blob/main/packages/query-core/src/utils.ts#L300)
11​
12Checks if key `b` partially matches with key `a`.
13​
14## Parameters
15​
16### a
17​
18readonly `unknown`[]
19​
20### b
21​
22readonly `unknown`[]
23​
24## Returns
25​
26`boolean`