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

Method Len

object_dynamic.go:51–51  ·  view source on GitHub ↗

Len returns the current array length.

()

Source from the content-addressed store, hash-verified

49type DynamicArray interface {
50 // Len returns the current array length.
51 Len() int
52 // Get an item at index idx. Note that idx may be any integer, negative or beyond the current length.
53 Get(idx int) Value
54 // Set an item at index idx. Note that idx may be any integer, negative or beyond the current length.

Callers 15

switchToUnicodeMethod · 0.65
exportToArrayOrSliceMethod · 0.65
escapeInvalidUtf16Function · 0.65
_putIdxMethod · 0.65
growMethod · 0.65
shrinkMethod · 0.65
putLengthMethod · 0.65
exportToArrayOrSliceMethod · 0.65
sortLenMethod · 0.65
getStrMethod · 0.65
getOwnPropStrMethod · 0.65

Implementers 2

testDynArrayobject_dynamic_test.go
testSharedDynArrayobject_dynamic_test.go

Calls

no outgoing calls

Tested by 1

testMarshalNodeFunction · 0.52