Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dop251/goja
/ ToNumber
Method
ToNumber
value.go:730–732 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
728
}
729
730
func
(o *Object) ToNumber() Value {
731
return
o.toPrimitiveNumber().ToNumber()
732
}
733
734
func
(o *Object) SameAs(other Value) bool {
735
return
o.StrictEquals(other)
Callers
nothing calls this directly
Calls
2
toPrimitiveNumber
Method · 0.95
ToNumber
Method · 0.65
Tested by
no test coverage detected