Created
December 20, 2019 17:34
-
-
Save djirdehh/d5a281a73151d6b25a2c066ab37c63eb to your computer and use it in GitHub Desktop.
Example bookingsIndex object for TinyHouse course
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
// 2019-01-01 year: 2019 | month: 01 | day: 01 | |
// 2019-01-02 year: 2019 | month: 01 | day: 02 | |
// 2019-05-31 year: 2019 | month: 05 | day: 31 | |
// 2019-06-01 year: 2019 | month: 06 | day: 01 | |
// 2019-07-20 year: 2019 | month: 07 | day: 20 | |
const bookingsIndex = { | |
"2019": { | |
"00": { | |
"01": true, | |
"02": true | |
}, | |
"04": { | |
"31": true | |
}, | |
"05": { | |
"01": true | |
}, | |
"06": { | |
"20": true | |
} | |
} | |
}; | |
// NOTE: the JavaScript function for getting the month returns 0 for Jan ... and 11 for Dec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment