Skip to content

Commit c0a364a

Browse files
committed
Remove unused and hooks util
1 parent cd13652 commit c0a364a

File tree

1 file changed

+0
-6
lines changed
  • packages/commerce-sdk-react/src/hooks

1 file changed

+0
-6
lines changed

packages/commerce-sdk-react/src/hooks/utils.ts

-6
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ export const pathStartsWith =
4949
({queryKey}: Query): boolean =>
5050
queryKey.length >= search.length && search.every((lookup, idx) => queryKey[idx] === lookup)
5151

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-
5852
/**
5953
* Merges headers and parameters from client config into the options, mimicking the behavior
6054
* of commerce-sdk-isomorphic.

0 commit comments

Comments
 (0)