Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/nodejs/node-addon-api
/ Unwrap
Method
Unwrap
napi-inl.h:582–585 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
580
581
template <class T>
582
T Maybe<T>::Unwrap() const {
583
NAPI_CHECK(IsJust(),
"Napi::Maybe::Unwrap"
,
"Maybe value is Nothing."
);
584
return _value;
585
}
586
587
template <class T>
588
T Maybe<T>::UnwrapOr(const T& default_value) const {
Callers
12
operator==
Method · 0.80
Value
Function · 0.80
napi-inl.h
File · 0.80
Then
Method · 0.80
Catch
Method · 0.80
Get
Method · 0.80
operator()
Method · 0.80
Call
Method · 0.80
MakeCallback
Method · 0.80
New
Method · 0.80
NormalJsCallback
Function · 0.80
MaybeUnwrap
Function · 0.80
Calls
1
Env
Method · 0.80
Tested by
1
MaybeUnwrap
Function · 0.64