MCPcopy
hub / github.com/gopherjs/gopherjs / Length

Method Length

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

Length returns the object's "length" property, converted to int.

()

Source from the content-addressed store, hash-verified

39
40// Length returns the object's "length" property, converted to int.
41func (o *Object) Length() int { return o.object.Length() }
42
43// Index returns the i'th element of an array.
44func (o *Object) Index(i int) *Object { return o.object.Index(i) }

Callers 5

MakeFullWrapperFunction · 0.95
KeysFunction · 0.45
MakeWrapperFunction · 0.45
TestLengthFunction · 0.45
TestNewFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestLengthFunction · 0.36
TestNewFunction · 0.36