4 ms·
For the love of God if you’re in the browser don’t use moment. It’s bulky and slow. Use date-fns and selectively import the functionality you’re actually using.
by untog 7y ago
For the love of God if you’re in the browser don’t use moment. It’s bulky and slow. Use date-fns and selectively import the functionality you’re actually using.
- yen223 7y agoNote that date-fns right now doesn't have great support for duration calculations: https://github.com/date-fns/date-fns/issues/284 https://github.com/date-fns/date-fns/issues/284 I wound up switching to Luxon because of this. Which is too bad, because date-fns is a fine library otherwise.