napi_strict_equals
napi_status napi_strict_equals(napi_env env,
napi_value lhs,
napi_value rhs,
bool* result)
-
[in] env
:调用 API 的环境。¥
[in] env
: The environment that the API is invoked under. -
[in] lhs
:要检查的 JavaScript 值。¥
[in] lhs
: The JavaScript value to check. -
[in] rhs
:要检查的 JavaScript 值。¥
[in] rhs
: The JavaScript value to check against. -
[out] result
:两个napi_value
对象是否相等。¥
[out] result
: Whether the twonapi_value
objects are equal.
如果 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.