We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
and
1 parent cd13652 commit c0a364aCopy full SHA for c0a364a
packages/commerce-sdk-react/src/hooks/utils.ts
@@ -49,12 +49,6 @@ export const pathStartsWith =
49
({queryKey}: Query): boolean =>
50
queryKey.length >= search.length && search.every((lookup, idx) => queryKey[idx] === lookup)
51
52
-/** Creates a query predicate that returns true if all of the given predicates return true. */
53
-export const and =
54
- <Args extends unknown[]>(...funcs: Array<(...args: Args) => boolean>) =>
55
- (...args: Args) =>
56
- funcs.every((fn) => fn(...args))
57
-
58
/**
59
* Merges headers and parameters from client config into the options, mimicking the behavior
60
* of commerce-sdk-isomorphic.
0 commit comments