Currently, I have a collection of objects stored in a variable called listOfObjects. They are not separated by commas because I utilized the Object.entries method to extract these values from another array.
console.log(listOfObjects)
outputs
{ q: 'LanceStephenson', tbm: 'isch' }
{ q: 'GorguiDieng', tbm: 'isch' }
{ q: 'SolomonHill', tbm: 'isch' }
(I would like to combine them into one array)
I am looking for this desired output
console.log(listOfObjects)
outputs
[
{ q: 'LanceStephenson', tbm: 'isch' },
{ q: 'GorguiDieng', tbm: 'isch' },
{ q: 'SolomonHill', tbm: 'isch' }
]
Please note that listOfObjects is currently a group of objects without commas separating them. I wish for them to form an array.