MCPcopy 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
718func (o *Object) ToFloat() float64 {
719 return o.toPrimitiveNumber().ToFloat()
720}
721
722func (o *Object) ToBoolean() bool {
723 return true

Callers

nothing calls this directly

Calls 2

toPrimitiveNumberMethod · 0.95
ToFloatMethod · 0.65

Tested by

no test coverage detected