Contents

isEqual(to:)

Compares the value to another for strict equality.

Declaration

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

Parameters

  • value:

    The value to be compared against.

Return Value

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

Discussion

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

See Also

Comparing JavaScript Values