napi_strict_equals


napi_status napi_strict_equals(napi_env env,
                               napi_value lhs,
                               napi_value rhs,
                               bool* result) 
  • [in] env:调用该 API 时所处的环境。
  • [in] lhs:要检查的 JavaScript 值。
  • [in] rhs:要检查的 JavaScript 值。
  • [out] result:两个 napi_value 对象是否相等。

如果 API 成功,则返回 napi_ok

【Returns napi_ok if the API succeeded.】

该 API 表示对 ECMAScript 语言规范 第7.2.14节 中定义的严格相等算法的调用。

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