MCPcopy Create free account
hub / github.com/devld/go-drive / Get

Method Get

script/utils.go:30–35  ·  view source on GitHub ↗
(index int)

Source from the content-addressed store, hash-verified

28}
29
30func (vs Values) Get(index int) *Value {
31 if index >= len(vs.vs) {
32 return newValue(vs.vm, otto.UndefinedValue())
33 }
34 return vs.vs[index]
35}
36
37func (vs Values) Len() int {
38 return len(vs.vs)

Callers

nothing calls this directly

Calls 1

newValueFunction · 0.85

Tested by

no test coverage detected