+ 1
Is there any way to nest an object inside of another object without key property?
E.g. var a = { {val:1}, {val:2} }; var b = {val:3} I want ro nest var b inside of var a.
6 odpowiedzi
+ 4
Use an array.
var a = [
{
val: 1,
},
{
val: 2,
},
];
+ 2
Wagner Alves dos Santos Your question says "with no key property". What exactly do you want?
+ 1
U mean objects nested in an array looks like pretty good to me. Thank you
0
I need to use key properties inside the objects nesteds
0
*nested object