MCPcopy Create free account
hub / github.com/dop251/goja / ToInteger

Method ToInteger

value.go:698–700  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

696}
697
698func (o *Object) ToInteger() int64 {
699 return o.toPrimitiveNumber().ToNumber().ToInteger()
700}
701
702func (o *Object) toString() String {
703 return o.toPrimitiveString().toString()

Callers

nothing calls this directly

Calls 3

toPrimitiveNumberMethod · 0.95
ToIntegerMethod · 0.65
ToNumberMethod · 0.65

Tested by

no test coverage detected