---
title: "webScriptValue(at:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/webscriptobject/webscriptvalue(at:)"
---

# webScriptValue(at:)

Returns the value of a property at the specified index.

## Declaration

```swift
func webScriptValue(at index: UInt32) -> Any!
```

## Parameters

- `index`: The index of the property.

## Return Value

Return Value The value of a property at index. Returns WebUndefined if an exception is thrown in the JavaScript environment.

## Discussion

Discussion Accessing property values by index is dependent on the scripting environment.

## See Also

### Getting and setting properties

- [jsObject()](webkit/webscriptobject/jsobject().md)
- [removeWebScriptKey(_:)](webkit/webscriptobject/removewebscriptkey(_:).md)
- [setWebScriptValueAt(_:value:)](webkit/webscriptobject/setwebscriptvalueat(_:value:).md)
