R
Reactiflux

_mercury – 00-31 Sep 2

_mercury – 00-31 Sep 2

M_mercury9/2/2022
I have an array of objects ==> Object like photo {value:123, label: 'foo'} I want to use array.map to get only the value and rename the key to id ?
UUUnknown User9/2/2022
Message Not Public
Sign In & Join Server To View
M_mercury9/2/2022
I did that ( no luck)
const attrs = selectedAttributes.map((attr) => ({
id: attr.value
}));
const attrs = selectedAttributes.map((attr) => ({
id: attr.value
}));
M_mercury9/2/2022
UUUnknown User9/2/2022
Message Not Public
Sign In & Join Server To View
M_mercury9/2/2022
results
UUUnknown User9/2/2022
Message Not Public
Sign In & Join Server To View
M_mercury9/2/2022
yes
UUUnknown User9/2/2022
2 Messages Not Public
Sign In & Join Server To View

Looking for more? Join the community!

R
Reactiflux

_mercury – 00-31 Sep 2

Join Server