Skip to content

Commit

Permalink
feat: 중복을 검사하는 유틸함수 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
NaveOWO committed Dec 18, 2023
1 parent f7195ae commit b3ee440
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/checkDuplicated.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function checkIsDuplicated(targetHashtag: string, arr: string[]) {
return arr.includes(targetHashtag);
}

0 comments on commit b3ee440

Please sign in to comment.