0
I have an object
{
'1': {
'nome': 'pedro',
'idade': 2,
},
'2': {
'maria': maria,
'idade': 5,
}
}
Array
[{
'1': {
'nome': 'pedro',
'idade': 2,
},
'2': {
'maria': maria,
'idade': 5,
}
}]
I need to check if it is an object like the example and if it will transform into an array as per
pure javascript template
This question already has an answer here: https://answall.com/questions/105978/converter-array-de-objetos-para-um-array-de-arrays
– LeAndrade
@Leandro Good night! It’s not the same thing I want to convert to an array of objects
– Luis Souza