Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Mar 23rd, 2018
77
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
export function formatFileSize(b) {
const s = 1024;
let u = 0;
while (b >= s || -b >= s) {
b /= s;
u += 1;
}
return (u ? b.toFixed(1) + ' ' : b) + ' KMGTPEZY'[u] + 'B';
};
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
Linden Scripting | 4 min ago | 6.11 KB
neurodrone
Python | 18 min ago | 7.28 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 21 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 27 min ago | 0.39 KB
Skip Limbo
Lua | 31 min ago | 0.97 KB
Error 3
Python | 1 hour ago | 1.85 KB
Módulo de ranking de puntos CSS
CSS | 1 hour ago | 0.49 KB
Módulo de ranking de puntos JS
jQuery | 1 hour ago | 1.25 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!