Skip to content
napi-bindings

Search

Search pages, projects and the Node-API reference

Browse Node-APIshow

napi_strict_equals

functionv1js_native_api.h

This API represents the invocation of the Strict Equality algorithm as defined in Section IsStrictlyEqual of the ECMAScript Language Specification.

napi_status napi_strict_equals(napi_env env,
                               napi_value lhs,
                               napi_value rhs,
                               bool* result)
  • [in] env: The environment that the API is invoked under.
  • [in] lhs: The JavaScript value to check.
  • [in] rhs: The JavaScript value to check against.
  • [out] result: Whether the two napi_value objects are equal.

Returns napi_ok if the API succeeded.

This API represents the invocation of the Strict Equality algorithm as defined in Section IsStrictlyEqual of the ECMAScript Language Specification.

View in the official Node.js documentation