JavaScript: padStart() and padEnd()
padStart() and padEnd() are really useful for getting your string to be a certain length. I've found more of a use for them for numbers (converted to strings).
Let's say you have to write all numbers as two digits, even if they are 0-9. To do this we...
blog.nicm42.me.uk2 min read