JS Date management - date-fns.js

I think the time had come to drop moment.js.

And when saying that is because I found something a bit more convenient and lightweight: date-fns.org

And I like the API, which sounds as:

const today = new Date();
console.log( lastDayOfMonth(today) );

Also is immutable which sync better with my working style.

And in fact what bothered me and pushed me to search an alternative for moment.js is that from some time now, Chrome started to "red-alert" the fact that moment.js can lead to poor performance.

So, try it yourself, you might like it.

cheers,