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 语言规范 部分 IsArray 中所定义的。
【This API represents invoking the IsArray operation on the object
as defined in Section IsArray of the ECMAScript Language Specification.】