<!--
{
  "availability" : [
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/isKeyExcluded(fromWebScript:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Objective-C Runtime",
      "ObjectiveC"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(cm)isKeyExcludedFromWebScript:"
  },
  "title" : "isKeyExcluded(fromWebScript:)"
}
-->

# isKeyExcluded(fromWebScript:)

Returns whether a key should be hidden from the scripting environment.

```
class func isKeyExcluded(fromWebScript name: UnsafePointer<CChar>!) -> Bool
```

## Parameters

`name`

The name of the attribute.

## Return Value

[`YES`](/documentation/ObjectiveC/YES) if the attribute specified by `name` should be hidden from the scripting environment; otherwise, [`NO`](/documentation/ObjectiveC/NO).

## Discussion

The default value is [`YES`](/documentation/ObjectiveC/YES).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)