code: function clearOwnProperties(obj) {
    for (var prop in obj) {
      if (obj.hasOwnProperty(prop)) {
        obj[prop] = undefined;
      }
    }
  }
docs: Sets an object's own properties to undefined. This may be called by destructors to avoid retaining references and help detect incorrect use of destroyed instances.