Last active
July 21, 2017 15:44
-
-
Save cherihung/ea2f063e543da4fd8d8d314fe57b03af to your computer and use it in GitHub Desktop.
generate string array of time units
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 characters
const _generator = i => { | |
return i < 9 ? '0'+(i+1) : (i+1).toString(); | |
}; | |
const UNITS = Array.from({length: 60}, (v, i) => { | |
return _generator(i); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment