I have such an array
var recipe = [
{
"ingredients":["potato", "tomato", "salt/pepper"],
"step" : 1,
},
{
"ingredients":["Brendon Eich's hair", "pasta", "water/sauce"],
"step" : 2,
},
]
I want to get this
var recipe = [
{
"ingredients":["potato", "tomato", "salt", "pepper"],
"step" : 1,
},
{
"ingredients":["Brendon Eich's hair", "pasta", "water", "sauce"],
"step" : 2,
},
]
////////////////////////////////////////////////
pls help me 🙂