Getting data from the api is my task
array : { "Blue": 8646, "Red": 3451, "Green": 2342}
I then aim to divide this into two separate arrays
arrayColor : ["Blue", "Red", "Green"]
arrayNumber : [8646, 3451, 2342]
Attempting to split using the split function was unsuccessful, as when I checked for array.length, the console returned it as undefined.
When I console.log(array)
the output appears like this
Proxy { "Blue": 8646, "Red": 3451, "Green": 2342}
Please assist me with this issue.