var o = { age : 26, name : "Tom" };
and got to wondering if there's any existing implementations of a jquery extend like function for haxe for CPP/Flash targets?
var object1 = {
apple: 0,
banana: {weight: 52, price: 100},
cherry: 97
};
var object2 = {
banana: {price: 200},
durian: 100
};
/* merge object2 into object1 */
$.extend(object1, object2);
now object1.durian == 100, etc.
Thanks!