---
title: "JSValueIsNull(_:_:)"
framework: javascriptcore
role: symbol
role_heading: Function
path: "javascriptcore/jsvalueisnull(_:_:)"
---

# JSValueIsNull(_:_:)

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

## Declaration

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

## Parameters

- `ctx`: The execution context to use.
- `value`: The doc://com.apple.javascriptcore/documentation/JavaScriptCore/JSValueRef to test.

## Return Value

Return Value true if the type of value is the null type; otherwise, false.

## See Also

### Testing the Value’s Type

- [JSValueGetType(_:_:)](javascriptcore/jsvaluegettype(_:_:).md)
- [JSValueIsUndefined(_:_:)](javascriptcore/jsvalueisundefined(_:_:).md)
- [JSValueIsBoolean(_:_:)](javascriptcore/jsvalueisboolean(_:_:).md)
- [JSValueIsNumber(_:_:)](javascriptcore/jsvalueisnumber(_:_:).md)
- [JSValueIsString(_:_:)](javascriptcore/jsvalueisstring(_:_:).md)
- [JSValueIsSymbol(_:_:)](javascriptcore/jsvalueissymbol(_:_:).md)
- [JSValueIsObject(_:_:)](javascriptcore/jsvalueisobject(_:_:).md)
- [JSValueIsObjectOfClass(_:_:_:)](javascriptcore/jsvalueisobjectofclass(_:_:_:).md)
- [JSValueIsArray(_:_:)](javascriptcore/jsvalueisarray(_:_:).md)
- [JSValueIsDate(_:_:)](javascriptcore/jsvalueisdate(_:_:).md)
- [JSValueGetTypedArrayType(_:_:_:)](javascriptcore/jsvaluegettypedarraytype(_:_:_:).md)
- [JSType](javascriptcore/jstype.md)
