Skip to content

Commit

Permalink
review-fix:convertZipCode関数を外部へ切り出し
Browse files Browse the repository at this point in the history
  • Loading branch information
marumoto-goq committed May 2, 2024
1 parent 6a02281 commit eae2236
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/utils/checkLength.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export const checkLength = (isExact: boolean, length: number): boolean => {
if (isExact === true && length === 7) {
return true;
}

if (isExact === false && length >= 2 && length <= 7) {
return true;
}

return false;
};

0 comments on commit eae2236

Please sign in to comment.