88
rated 0 times
[
93]
[
5]
/ answers: 1 / hits: 19435
/ 7 Years ago, thu, february 9, 2017, 12:00:00
I'm working with Angular 2 ( typescript)
I have an Object:
obj = {
cadSocios : true
};
And I need to add to it other values:
obj2 = {
name : ['name1', 'name2'],
part : ['part1', 'part2']
};
My Final Object must be:
objFinal = {
cadSocios : true,
name : ['name1', 'name2'],
part : ['part1', 'part2']
};
How can I do this? in array can use .push, and Object?
More From » javascript