So we had the Discussion today in our company about +new Date()
being good practice or not.
Some prefer this way over new Date().getTime()
.
In my opinion, this is pretty convenient but on the other side one would say it's harder to read.
Are there any pros or cons besides the obvious "It's harder to understand for people not familiar with the unary operator"?
See Question&Answers more detail:os