<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebScriptObject/webScriptValue(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WebScriptObject(im)webScriptValueAtIndex:"
  },
  "title" : "webScriptValue(at:)"
}
-->

# webScriptValue(at:)

Returns the value of a property at the specified index.

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

## Parameters

`index`

The index of the property.

## Return Value

The value of a property at `index`. Returns [`WebUndefined`](/documentation/WebKit/WebUndefined) if an exception is thrown in the JavaScript environment.

## Discussion

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

---

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)