Created
March 12, 2013 14:00
-
-
Save edwinwebb/5143085 to your computer and use it in GitHub Desktop.
Small function for leading 0s
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
function (a,b){return(1e15+a+"").slice(-b)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment