Update formatNumber.md
This commit is contained in:
committed by
GitHub
parent
3d16d647ea
commit
49f4cbfbc9
@ -8,7 +8,7 @@ Returns a number using the local number format order.
|
|||||||
Use `Number.prototype.toLocaleString()` to convert a number to using the local number format separators.
|
Use `Number.prototype.toLocaleString()` to convert a number to using the local number format separators.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const formatNumber = number => number.toLocaleString();
|
const formatNumber = num => num.toLocaleString();
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|||||||
Reference in New Issue
Block a user