Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
superfrank
on Sept 15, 2020
|
parent
|
context
|
favorite
| on:
We now consider Moment.js to be a legacy project i...
Just to confirm that I remember Moment correctly, the code in the if statement never runs because .add mutates somedate, so somedate and oneMonthLater are the same, correct?
balls187
on Sept 15, 2020
[–]
Yes, `somedate` is mutable.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: