napi_status napi_create_array(napi_env env, napi_value* result)
[in] env: The environment that the N-API call is invoked under.[out] result: Anapi_valuerepresenting a JavaScriptArray.
Returns napi_ok if the API succeeded.
This API returns an N-API value corresponding to a JavaScript Array type.
JavaScript arrays are described in
[Section 22.1][] of the ECMAScript Language Specification.
