helpers.js

Download
javascript 19 lines 447 B
 1/**
 2 * μœ ν‹Έλ¦¬ν‹° ν•¨μˆ˜
 3 */
 4
 5export function formatDate(date) {
 6    return new Intl.DateTimeFormat('ko-KR', {
 7        year: 'numeric',
 8        month: 'long',
 9        day: 'numeric',
10        hour: '2-digit',
11        minute: '2-digit',
12    }).format(date);
13}
14
15// μ‚¬μš©λ˜μ§€ μ•ŠλŠ” ν•¨μˆ˜ (Tree Shaking λŒ€μƒ)
16export function unusedFunction() {
17    console.log('이 ν•¨μˆ˜λŠ” μ‚¬μš©λ˜μ§€ μ•Šμ•„ ν”„λ‘œλ•μ…˜ λΉŒλ“œμ—μ„œ μ œκ±°λ©λ‹ˆλ‹€.');
18}