'Puppeteer how do i convert my array to Object?

I'm trying to create a bot to get a list of innerText from website. i manage to get the values but i dont know how to send this values to and object or something to help me work with the values.

the website has this litle box

exists 27 box in total, i only need the numbers and the name, but when i get i send to a map and convert to an array, but each array position has all the values, numbers and the name.

this is wha i'm using to get the values.

 const numbers = await entryHall.$$eval('.lobby-table', el => el.map(roleta => roleta.innerText))
    const values = Array.from(numbers.values())
    console.log(values[0])
    console.log(values.length)

.lobby-table contain all the 27 BOX

when i got the values only by position 0, return this.

is it possible get number by number, and the name separately?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source