Skip to content

Commit

Permalink
cleanup: remove unused util function
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodrig committed Feb 24, 2024
1 parent 06e0c4b commit fb57a7b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,3 @@ export function isInvalid(parsedJson: unknown) {
return parsedJson === Infinity ||
parsedJson === -Infinity;
}

/**
* Helper function that checks if the provided regex matches any of the provided strings
*/
export function anyKeysMatch(keys: string[], regex: RegExp) {
for (const key of keys) {
if (key.match(regex))
return key;
}
return false;
}

0 comments on commit fb57a7b

Please sign in to comment.