돈의 자릿수 마다 점 찍기

유관희·2022년 11월 5일
0

const convertPrice = (price) => {
return price.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
};

profile
안녕하세요~

0개의 댓글