I currently have an array of strings with date and price information:
const array = [
"date: 1679534340367, price: 27348.6178237571831766",
"date: 1679534340367, price: 27348.6178237571831766",
"date: 1679534340367, price: 27348.6178237571831766",
"date: 1679534340367, price: 27348.6178237571831766",
"date: 1679534340367, price: 27348.6178237571831766"
]
My goal is to transform this array into a new array of objects structured like this:
const array = [
{"date": 1679534340367, "price": 27348.6178237571831766},
{"date": 1679534340367, "price": 27348.6178237571831766},
{"date": 1679534340367, "price": 27348.6178237571831766},
{"date": 1679534340367, "price": 27348.6178237571831766},
{"date": 1679534340367, "price": 27348.6178237571831766},
]