Class Napi::Boolean inherits from class Napi::Value.
Napi::Boolean class is a representation of the JavaScript Boolean object. The
Napi::Boolean class inherits its behavior from the Napi::Value class
(for more info see: Napi::Value).
Creates a new empty instance of an Napi::Boolean object.
Napi::Boolean::Boolean();Returns a new empty Napi::Boolean object.
Creates a new instance of the Napi::Boolean object.
Napi::Boolean(napi_env env, napi_value value);[in] env: Thenapi_envenvironment in which to construct theNapi::Booleanobject.[in] value: Thenapi_valuewhich is a handle for a JavaScriptBoolean.
Returns a non-empty Napi::Boolean object.
Initializes a new instance of the Napi::Boolean object.
Napi::Boolean Napi::Boolean::New(napi_env env, bool value);[in] env: Thenapi_envenvironment in which to construct theNapi::Booleanobject.[in] value: The primitive boolean value (trueorfalse).
Returns a new instance of the Napi::Boolean object.
Converts a Napi::Boolean value to a boolean primitive.
bool Napi::Boolean::Value() const;Returns the boolean primitive type of the corresponding Napi::Boolean object.
Converts a Napi::Boolean value to a boolean primitive.
Napi::Boolean::operator bool() const;Returns the boolean primitive type of the corresponding Napi::Boolean object.