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

Method Get

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

Get an item at index idx. Note that idx may be any integer, negative or beyond the current length.

(idx int)

Source from the content-addressed store, hash-verified

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.
55 // The expected behaviour when it's beyond length is that the array's length is increased to accommodate
56 // the item. All elements in the 'new' section of the array should be zeroed.

Implementers 2

testDynArrayobject_dynamic_test.go
testSharedDynArrayobject_dynamic_test.go

Calls

no outgoing calls