Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


Yes, `somedate` is mutable.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: