code: function supportsObject(object, noGrip = false) {
    if (noGrip === true || !isGrip(object)) {
      return false;
    }
  
    if (object.class === "DeadObject") {
      return true;
    }
  
    return object.preview
      ? typeof object.preview.ownProperties !== "undefined"
      : typeof object.ownPropertyLength !== "undefined";
  }
docs: Registration