getBytes
Converts a byte value into a string that represents the byte value in the appropriate unit (e.g., KB, MB, GB, etc.).
Parameters
Parameter | Type | Optional | Default | Description |
---|
bytes | number | false | | The byte value to convert. |
Returns
string
Example