I want to check if my json data is null/undefined. I have the following code but it seems to skip the checking and go straight to the else
.
if (events === null) {
container.append(nano(nogig));
} else {
events[0].start.good_date = good_date(events[0].start.date);
container.append(nano(template, events[0]));
}
Line 385 on this JSfiddle