How to turn an object from this one:
{
"x1": {
"src": "https://....png",
"webp": "https://....webp"
},
"x2": {
"src": "https://....png",
"webp": "https://....webp"
}
}
to this one:
[
{
srcSet: 'https://....webp 1x, https://....webp 2x'
},
{
srcSet: 'https://....png 1x, https://....png 2x'
}
]
I'm stuck with it, tried different object methods but always coming up with the same code which doesn't work as I expect it.
Object.valuesthen.map.