Javascript Object clone(object) {

Description

Javascript Object clone(object) {

Object.clone = function(object) {
  var clone = {};
  Object.each(object, function(key, value) {
    clone[key] = value;/*from   w  w  w  .  j  a  v  a 2  s.c  o  m*/
  });
  return clone;
};



PreviousNext

Related