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