Update prettyBytes.md

This commit is contained in:
atomiks
2018-01-02 03:30:33 +11:00
committed by GitHub
parent 834aaa4300
commit 6e52930234

View File

@ -2,8 +2,9 @@
Converts a number in bytes to a human-readable string. Converts a number in bytes to a human-readable string.
Use an array dictionary of units to be accessed based on the exponent. Return the prettified Use an array dictionary of units to be accessed based on the exponent.
string by building it up taking into account the supplied options and whether it is Use `Number.toPrecision()` to truncate the number to a certain number of digits.
Return the prettified string by building it up, taking into account the supplied options and whether it is
negative or not. negative or not.
```js ```js