Contents

JSValueIsEqual(_:_:_:_:)

Tests whether two JavaScript values are equal.

Declaration

func JSValueIsEqual(_ ctx: JSContextRef!, _ a: JSValueRef!, _ b: JSValueRef!, _ exception: UnsafeMutablePointer<JSValueRef?>!) -> Bool

Parameters

  • ctx:

    The execution context to use.

  • a:

    The first value to test.

  • b:

    The second value to test.

  • exception:

    A pointer to a Jsvalueref to store an exception in, if any. Pass NULL to discard any exception.

Return Value

true if the two values are equal according to the JavaScript == operator; false if they’re unequal or the system throws an exception.

See Also

Comparing Values