Monday, June 17, 2013
Jquery combine two objects values into a single object
Jquery is having inbuilt function called extend,
which can be used to merge two objects values in a single object.
var data1 = {
duration: 100
};
var data2 = {
duration: 110
};
console.log("Before Data1 " + JSON.stringify(data1));
console.log("Before Data2...
Subscribe to:
Posts (Atom)