napi_is_array
napi_status napi_is_array(napi_env env, napi_value value, bool* result) [in] env:API 被调用时所处的环境。[in] value:要检查的 JavaScript 值。[out] result:给定的对象是否为数组。
如果 API 成功,则返回 napi_ok。
🌐 Returns napi_ok if the API succeeded.
此 API 表示对对象调用 IsArray 操作,正如 ECMAScript 语言规范 第7.2.2节 中所定义的。
🌐 This API represents invoking the IsArray operation on the object
as defined in Section 7.2.2 of the ECMAScript Language Specification.