---
title: "isSelectorExcluded(fromWebScript:)"
framework: objectivec
role: symbol
role_heading: Type Method
path: "objectivec/nsobject-swift.class/isselectorexcluded(fromwebscript:)"
---

# isSelectorExcluded(fromWebScript:)

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

## Declaration

```swift
class func isSelectorExcluded(fromWebScript selector: Selector!) -> Bool
```

## Parameters

- `selector`: The selector.

## Return Value

Return Value YES if the selector specified by aSelector should be hidden from the scripting environment; otherwise, NO.

## Discussion

Discussion Only methods with valid parameters and return types are exported to the WebKit JavaScript environment. The valid types are Objective-C objects and scalars. The default value is YES.

## See Also

### Getting attributes

- [webScriptName(forKey:)](objectivec/nsobject-swift.class/webscriptname(forkey:).md)
- [webScriptName(for:)](objectivec/nsobject-swift.class/webscriptname(for:).md)
- [isKeyExcluded(fromWebScript:)](objectivec/nsobject-swift.class/iskeyexcluded(fromwebscript:).md)
