isEqual method

bool isEqual(
  1. JSValue other, {
  2. JSValuePointer? exception,
})

Tests whether two JavaScript values are equal, as compared by the JS == operator.

Implementation

bool isEqual(
  JSValue other, {
  JSValuePointer? exception,
}) {
  return JSValueRef.jSValueIsEqual(context.pointer, pointer, other.pointer,
          (exception ?? JSValuePointer(nullptr)).pointer) ==
      1;
}