9477
HTML
<div id="log"> </div>
JavaScript
var a = {
nested: {
arr: [0, 1, 2],
str: "abc"
}
};
var b = {
nested: {
arr: [3],
str: "d"
}
};
$.extend(true, a, b);
$("#log").html(
"nested.arr = [" + a.nested.arr.toString() + "]" +
" (should be [3]) <br/>" +
"nested.str = '" + a.nested.str + "'" +
" (should be 'd')"
)