<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "JavaScriptCore",
  "identifier" : "/documentation/JavaScriptCore/JSValueIsObject(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "JavaScriptCore"
    ],
    "preciseIdentifier" : "c:@F@JSValueIsObject"
  },
  "title" : "JSValueIsObject(_:_:)"
}
-->

# JSValueIsObject(_:_:)

Tests whether a JavaScript value’s type is the object type.

```
func JSValueIsObject(_ ctx: JSContextRef!, _ value: JSValueRef!) -> Bool
```

## Parameters

`ctx`

The execution context to use.

`value`

The [`JSValueRef`](/documentation/JavaScriptCore/JSValueRef) to test.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the type of `value` is the object type; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

---

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)