Javascript Object merge(object1, object2) {

Description

Javascript Object merge(object1, object2) {

Object.merge = function(object1, object2) {
  var target = Object.clone(object1);
  Object.each(object2, function(key, value) {
    target[key] = value;/*from  w ww. ja  v  a  2  s .c om*/
  });
  return target;
};



PreviousNext

Related