update snippet toDecimalMark, add test for toDecimalMark
This commit is contained in:
@ -7,5 +7,5 @@ const toDecimalMark = num => num.toLocaleString('en-US');
|
||||
```
|
||||
|
||||
```js
|
||||
toDecimalMark(12305030388.9087); // "12,305,030,388.9087"
|
||||
toDecimalMark(12305030388.9087); // "12,305,030,388.909"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user