🔢

数字を3桁カンマ区切りにする

2023/03/30に公開
const number = 12345;
number.toLocaleString();

toLocaleString()する値は数値でなければならない。

Discussion