Um, yes? There's a major difference between |
and ||
, and polyfills should use:
Date.now = Date.now || function() {return +new Date;};
After all, if you used this:
Date.now = Date.now | function() {return +new Date;};
You'd get the result 0
overwriting the function.