Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Converts json received from goggle cal API in format to be used in moment-holiday plugin locale files
//depends on lodash
var momentHolidays = {};
_.map(googleRes.items, function(o) {
momentHolidays[o.summary] = {
'date': (o.start.date.split("-")[1] + '/' + o.start.date.split("-")[2])
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.