lib/util/clone.js
function clone(object, extend) {

  var cloned = {};

  for (var key in object) {
    cloned[key] = object[key];
  }

  for (var key in extend) {
    cloned[key] = extend[key];
  }

  return cloned;
}
function clone(object, extend) {

  var cloned = {};

  for (var key in object) {
    cloned[key] = object[key];
  }

  for (var key in extend) {
    cloned[key] = extend[key];
  }

  return cloned;
}
function clone ( object , extend ) { var cloned = { } ; for ( var key in object ) { cloned [ key ] = object [ key ] ; } for ( var key in extend ) { cloned [ key ] = extend [ key ] ; } return cloned ; }
A simple clone function that also allows you to pass an "extend" object whose properties will be
added to the cloned copy of the original object passed.
A simple clone function that also allows you to pass an extend object whose properties will be added to the cloned copy of the original object passed .