As I switch from moment to date-fns, I came across this code that involves moment, which I don't quite understand. However, I do comprehend the map function.
this.events[0].dates.map(date => moment(date).format(this.$i18n.locale))
I set up an environment to test the moment function, but the output was unexpected and now I'm completely baffled.
When I utilized
moment()
const startDate = "2021-07-26";
const actualDay = new Date();
const timeStamp = 1624988893000;
to understand the functionality of this function, the result repeatedly displayed something like MOMENT TEST 610-63
I suspect there might be an issue with the function itself, but I'm starting to doubt my thought process.