I found a very elegant ‘humanize’ converter for Java on stackoverflow which didn’t use any loops.
Is it possible to do the same with javascript? (e.g 1024 bytes => 1 kb)?
As simple as it sounds I have done quite a search for it
Incase you’re wondering : Java Version
Note the Java version results table has an error displaying 7.1 KB instead of 7.1 MB