Created
December 16, 2019 08:06
-
-
Save Mossuru777/478341e7a87a300eb4503ba17b1762e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const zeroPadding = (number, digits) => (Array(digits).fill("0").join("") + number.valueOf()).substr(-digits); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment