How to get height and width of an url from in for an array of image object in useeffect
const imagepushPomise = imgNameArray.map(async (item, index) => {
if
(index == 0 || index % 3 == 0)
{ images.push({ url: item, style: "", check: "notboth" })}
else {
images.push({ url: item, style: "tall" , height:"", width:"" })
}
})
I need to add that object to the else part of the code