Skip to content

Instantly share code, notes, and snippets.

@djirdehh
Created December 20, 2019 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djirdehh/d5a281a73151d6b25a2c066ab37c63eb to your computer and use it in GitHub Desktop.
Save djirdehh/d5a281a73151d6b25a2c066ab37c63eb to your computer and use it in GitHub Desktop.
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