Format bytes into a human-readable string with unit.
The number of bytes to format.
The separator between the number and unit. Defaults to a space.
The formatted string.
// returns '1.0 MB'formatBytes(1048576) Copy
// returns '1.0 MB'formatBytes(1048576)
// returns '1.0-MB'formatBytes(1048576, '-') Copy
// returns '1.0-MB'formatBytes(1048576, '-')
Format bytes into a human-readable string with unit.