How to convert a unix timestamp from a string to a number, in JavaScript, without losing precision:
const stringTimestamp = '1603767190'; // Unix Timestamp
const numberTimestamp = (+ new Date(stringTimestamp * 1000)) / 1000;
console.log(numberTimestamp); // 1603767190
console.log(typeof numberTimestamp); // number