Assuming I have an array of milliseconds values like this:
const array = [
1633236300000,
1633244100000,
1633248000000,
1633252500000,
1633287600000,
1633291500000
]
How can I get the difference between an element of an array and the previous one?