Skip to content

Commit

Permalink
Remove unused and hooks util
Browse files Browse the repository at this point in the history
  • Loading branch information
adamraya committed Mar 22, 2023
1 parent cd13652 commit c0a364a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/commerce-sdk-react/src/hooks/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ export const pathStartsWith =
({queryKey}: Query): boolean =>
queryKey.length >= search.length && search.every((lookup, idx) => queryKey[idx] === lookup)

/** Creates a query predicate that returns true if all of the given predicates return true. */
export const and =
<Args extends unknown[]>(...funcs: Array<(...args: Args) => boolean>) =>
(...args: Args) =>
funcs.every((fn) => fn(...args))

/**
* Merges headers and parameters from client config into the options, mimicking the behavior
* of commerce-sdk-isomorphic.
Expand Down

0 comments on commit c0a364a

Please sign in to comment.