Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dop251/goja
/ ToFloat
Method
ToFloat
value.go:718–720 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
716
}
717
718
func
(o *Object) ToFloat() float64 {
719
return
o.toPrimitiveNumber().ToFloat()
720
}
721
722
func
(o *Object) ToBoolean() bool {
723
return
true
Callers
nothing calls this directly
Calls
2
toPrimitiveNumber
Method · 0.95
ToFloat
Method · 0.65
Tested by
no test coverage detected