replace
で変換してNumberに変換します。
> Number("¥1,000,000".replace(/[¥,]/g, ''))
=> 1000000
Go to list of users who liked
More than 3 years have passed since last update.
replace
で変換してNumberに変換します。
> Number("¥1,000,000".replace(/[¥,]/g, ''))
=> 1000000
Register as a new user and use Qiita more conveniently
Go to list of users who liked