MCPcopy
hub / github.com/gopherjs/gopherjs / SetIndex

Method SetIndex

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

SetIndex sets the i'th element of an array.

(i int, value any)

Source from the content-addressed store, hash-verified

45
46// SetIndex sets the i'th element of an array.
47func (o *Object) SetIndex(i int, value any) { o.object.SetIndex(i, value) }
48
49// Call calls the object's method with the given name.
50func (o *Object) Call(name string, args ...any) *Object { return o.object.Call(name, args...) }

Callers 2

TestSetIndexFunction · 0.45
TestCallingJsFieldFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestSetIndexFunction · 0.36
TestCallingJsFieldFunction · 0.36