Here is my following code,
points1 = [{x:'10'},{x:'20',fill:'red'}]
points2 = [{x:'30'},{x:'30'}]
$.extend(true, points1, {}, points2);
it will be returned points1 as [{x:'30'},{x:'30',fill:'red'}] but what i need is ,if the fill is not available in points2 there should reflect..
my expected o/p is points1 = [{x:'30'},{x:'30'}]
how to achieve?
Arrays.$.extend()needsObjects