---
title: "isEqual(to:)"
framework: javascriptcore
role: symbol
role_heading: Instance Method
path: "javascriptcore/jsvalue/isequal(to:)"
---

# isEqual(to:)

Compares the value to another for strict equality.

## Declaration

```swift
func isEqual(to value: Any!) -> Bool
```

## Parameters

- `value`: The value to be compared against.

## Return Value

Return Value true if the values are strictly equal; otherwise, false.

## Discussion

Discussion This method is analogous to the identity or strict equality operator === in JavaScript.

## See Also

### Comparing JavaScript Values

- [isEqualWithTypeCoercion(to:)](javascriptcore/jsvalue/isequalwithtypecoercion(to:).md)
- [isInstance(of:)](javascriptcore/jsvalue/isinstance(of:).md)
