whole_func_string: function cloneObject(object) {
    var clone = {};
    if (object) {
      for (var key in object)
        clone[key] = object[key];
    }
    return clone;
  }
func_code_string: function cloneObject(object) {
    var clone = {};
    if (object) {
      for (var key in object)
        clone[key] = object[key];
    }
    return clone;
  }
func_documentation_string: Clone an object by copying all its properties and returning new object. If the argument is missing or null, returns a new object.