Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/buke/quickjs-go
/ Bool
Method
Bool
value.go:128–130 ·
view source on GitHub ↗
Deprecated: Use ToBool instead.
()
Source
from the content-addressed store, hash-verified
126
127
// Deprecated: Use ToBool instead.
128
func
(v *Value) Bool() bool {
129
return
v.ToBool()
130
}
131
132
// ToBool returns the boolean value of the value.
133
func
(v *Value) ToBool() bool {
Callers
3
isEmptyValue
Function · 0.45
marshal
Method · 0.45
TestValueConversions
Function · 0.45
Calls
1
ToBool
Method · 0.95
Tested by
1
TestValueConversions
Function · 0.36