I found some code from a departed colleague and no one is sure what the plus in front of the following Date
objects is doing.
return {
isActive: +new Date(notice.reportedAt) === +this.activeNoticeReportedAt,
...
}
I feel like it is some kind of JavaScript trick that is supposed to protect against undefined, but that is just a wild guess.
Please not that activeNoticeReportedAt
is already a Date