Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example bookingsIndex object for TinyHouse course
// 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