Last active
May 8, 2020 17:55
-
-
Save daresam/ca82b808f3f2de52ca6807e30452dfc5 to your computer and use it in GitHub Desktop.
Revisions
-
daresam renamed this gist
May 8, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
daresam created this gist
May 8, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ let padToThree = (number) => (number <= 999 ? `00${number}`.slice(-3) : number); // padToThree(11) return 011