MCPcopy 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
730func (o *Object) ToNumber() Value {
731 return o.toPrimitiveNumber().ToNumber()
732}
733
734func (o *Object) SameAs(other Value) bool {
735 return o.StrictEquals(other)

Callers

nothing calls this directly

Calls 2

toPrimitiveNumberMethod · 0.95
ToNumberMethod · 0.65

Tested by

no test coverage detected