Y
Hacker News
new
|
ask
|
show
|
jobs
by
vanderZwan
1492 days ago
Oh, right, good catch! So <number>.toString(2).padStart(8, "0") then. I still expect it to be faster than this clever hack though.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...