Make api result equal to an array, REACT JS

I have achieved displaying the api result like this

{data.map((pop) => (
                <div key={pop.id} className="popular">
                    {pop.title}
                </div>
            ))}

but I want the displayed results to be equal to an array like this

var myArray = [//the results here//]

Thanks in Advance

Hello, isn’t the data variable already an array? Can you please elaborate on what your’re trying to achieve?