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

Method stringKeys

typedarrays.go:930–938  ·  view source on GitHub ↗
(all bool, accum []Value)

Source from the content-addressed store, hash-verified

928}
929
930func (a *typedArrayObject) stringKeys(all bool, accum []Value) []Value {
931 if accum == nil {
932 accum = make([]Value, 0, a.length)
933 }
934 for i := 0; i < a.length; i++ {
935 accum = append(accum, asciiString(strconv.Itoa(i)))
936 }
937 return a.baseObject.stringKeys(all, accum)
938}
939
940type typedArrayPropIter struct {
941 a *typedArrayObject

Callers

nothing calls this directly

Calls 2

asciiStringTypeAlias · 0.85
stringKeysMethod · 0.65

Tested by

no test coverage detected