0
Eae guys, I bugged here to solve a little problem. I have the following array:
[
{ cachorro: 'Bob', gato: 'Mica' },
{ dono: 'Jose', dona: 'Maria },
{ outros_animais: 'sim', animais: ['cavalo', 'vaca'] }
]
My goal is to create a single object with all these attributes, so the output looks like this:
{
cachorro: 'Bob',
gato: 'Mica',
dono: 'Jose',
dona: 'Maria,
outros_animais: 'sim',
animais:
['cavalo', 'vaca']
}
I think I’m forgetting something, because it shouldn’t be too complicated but anyway, I bugged.
Thanks.
Edit: Actually, there’s a huge object and I don’t know the name of its attributes. So it has to be something generic.
Good brother, that’s right. Thanks
– Develop_SP
Nothing! Just don’t forget to accept the accepted answer.
– Vinicius.Silva
I had to wait a minimum time, tai ja x)
– Develop_SP