code: function clearObject(object) {
    var key;
  
    for (key in object) {
      if (object.hasOwnProperty(key)) {
        // Ensures only writable properties are deleted.
        try {
          delete object[key];
        } catch (e) { }
      }
    }
  }
docs: Clear out an object of all properties
  @private