Skip to content

Commit

Permalink
docs: deprecated amountToHangul
Browse files Browse the repository at this point in the history
  • Loading branch information
BO-LIKE-CHICKEN committed Oct 10, 2024
1 parent 56f7659 commit 0e9d916
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/amountToHangul/amountToHangul.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {
HANGUL_CARDINAL,
} from '@/_internal/constants';

/**
* @deprecated 더 유연하게 사용 가능한 `numberToHangul`을 이용해 주세요
*/
export function amountToHangul(amount: string | number) {
const [rawIntegerPart, rawDecimalPart] = String(amount)
.replace(/[^\d.]+/g, '')
Expand Down

0 comments on commit 0e9d916

Please sign in to comment.