A UI Developer's Blog
Monday, April 9, 2018
entertaining left pad with zeros in javascript
Nice hack to left pad a number in JS
("0000" + num).slice(-4)
via
stackoverflow
of course.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment