MCPcopy
hub / github.com/gopherjs/gopherjs / Bool

Method Bool

js/js.go:59–59  ·  view source on GitHub ↗

Bool returns the object converted to bool according to JavaScript type conversions.

()

Source from the content-addressed store, hash-verified

57
58// Bool returns the object converted to bool according to JavaScript type conversions.
59func (o *Object) Bool() bool { return o.object.Bool() }
60
61// String returns the object converted to string according to JavaScript type conversions.
62func (o *Object) String() string { return o.object.String() }

Callers 11

mainFunction · 0.45
MakeFullWrapperFunction · 0.45
TestBoolConvertFunction · 0.45
TestBoolFunction · 0.45
TestUnboxingFunction · 0.45
TestSameFuncWrapperFunction · 0.45
TestMakeWrapperFunction · 0.45
TestNilFunction · 0.45
run.goFile · 0.45

Calls

no outgoing calls

Tested by 8

TestBoolConvertFunction · 0.36
TestBoolFunction · 0.36
TestUnboxingFunction · 0.36
TestSameFuncWrapperFunction · 0.36
TestMakeWrapperFunction · 0.36
TestNilFunction · 0.36