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

Method stringKeys

object_goarray_reflect.go:308–314  ·  view source on GitHub ↗
(all bool, accum []Value)

Source from the content-addressed store, hash-verified

306}
307
308func (o *objectGoArrayReflect) stringKeys(all bool, accum []Value) []Value {
309 for i := 0; i < o.fieldsValue.Len(); i++ {
310 accum = append(accum, asciiString(strconv.Itoa(i)))
311 }
312
313 return o.objectGoReflect.stringKeys(all, accum)
314}
315
316func (o *objectGoArrayReflect) iterateStringKeys() iterNextFunc {
317 return (&goArrayReflectPropIter{

Callers

nothing calls this directly

Calls 3

asciiStringTypeAlias · 0.85
LenMethod · 0.65
stringKeysMethod · 0.65

Tested by

no test coverage detected