I am trying to understand the use of extra parentheses around the Date constructor in the following return statement:
if (!Date.now) {
Date.now = function now() {
return +(new Date); // <-- ???
};
}
Are there any edge-cases in which these parentheses cannot be omitted? Thanks!