Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
row: newEvents.map(function(dayEvent) {
var event = dayEvent.event;
return {
event: event,
top: dayEvent.top,
offset: calendarUtils.getWeekViewEventOffset({
event: {
start: event.startsAt,
end: event.endsAt
},
startOfWeek: moment(viewDate).startOf('week').toDate()
})
};
})
}];