1. napi_status napi_get_undefined(napi_env env, napi_value* result)
    • [in] env: The environment that the API is invoked under.
    • [out] result: napi_value representing JavaScript Undefined value.

    Returns napi_ok if the API succeeded.

    This API returns the Undefined object.