dist/palindrom-dom.js
/**
  * Deep clones your object and returns a new object.
  */
Deep clones your object and returns a new object.
Deep clones your object and returns a new object .
function deepClone(obj) {
    switch (typeof obj) {
      case 'object':
        return JSON.parse(JSON.stringify(obj)); 
      case 'undefined':
        return null; 
      default:
        return obj; 
    }
  }
function deepClone ( obj ) { switch ( typeof obj ) { case 'object' : return JSON . parse ( JSON . stringify ( obj ) ) ; case 'undefined' : return null ; default : return obj ; } }
Deep clones your object and returns a new object.
Deep clones your object and returns a new object .
//Faster than ES5 clone - http://jsperf.com/deep-cloning-of-objects/5 //this is how JSON.stringify behaves for array items //no need to clone primitives