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"?
question from:
https://stackoverflow.com/questions/14255664/new-date-is-this-good-practice 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…