left-pad string
Break free from dependency hell with this one simple trick.
Have fun and make sure to learn How one programmer broke the internet by deleting a tiny piece of code 😉
function leftPad(str, max, char) {
return str.padStart(max, char);
}