Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
pithesun committed Sep 16, 2024
1 parent 5dbd5fa commit e90bd95
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const filterCategories = (categories) => {
return categories.reduce(
(ac, field) =>
ac.includes(String(field.fieldValue).toLowerCase())
? ac
: [...ac, String(field.fieldValue).toLowerCase()],
[]
);
};

0 comments on commit e90bd95

Please sign in to comment.