After invoking a JavaScript function, I received the following results:
(1, 00), (2, 10), (3, 01), (4, 11)
I am looking to store this data in an array or JSON format like this:
[{id:1, number: 00},{id:2, number: 10},{id:3, number: 01},{id:4, number: 11}]
Any suggestions on how I can achieve this and end up with an array of length 4?
If you have any ideas, please share. Thank you! :)