code: function _clone(value) {
    if(value && typeof value === 'object') {
      var rval = Array.isArray(value) ? [] : {};
      for(var i in value) {
        rval[i] = _clone(value[i]);
      }
      return rval;
    }
    return value;
  }
docs: Clones an object, array, or string/number.
  
  @param value the value to clone.
  
  @return the cloned value.