napi_set_property
functionv1js_native_api.hThis API set a property on the Object passed in.
napi_status napi_set_property(napi_env env,
napi_value object,
napi_value key,
napi_value value);
[in] env: The environment that the Node-API call is invoked under.[in] object: The object on which to set the property.[in] key: The name of the property to set.[in] value: The property value.
Returns napi_ok if the API succeeded.
This API set a property on the Object passed in.