napi_get_boolean
napi_status napi_get_boolean(napi_env env, bool value, napi_value* result) [in] env:调用该 API 时所处的环境。[in] value:要获取的布尔值。[out] result:表示要获取的 JavaScriptBoolean单例的napi_value。
如果 API 成功,则返回 napi_ok。
【Returns napi_ok if the API succeeded.】
此 API 用于返回用于表示给定布尔值的 JavaScript 单例对象。
【This API is used to return the JavaScript singleton object that is used to represent the given boolean value.】