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

Method next

array.go:285–296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

283}
284
285func (i *arrayPropIter) next() (propIterItem, iterNextFunc) {
286 for i.idx < len(i.a.values) && i.idx < i.limit {
287 name := asciiString(strconv.Itoa(i.idx))
288 prop := i.a.values[i.idx]
289 i.idx++
290 if prop != nil {
291 return propIterItem{name: name, value: prop}, i.next
292 }
293 }
294
295 return i.a.baseObject.iterateStringKeys()()
296}
297
298func (a *arrayObject) iterateStringKeys() iterNextFunc {
299 return (&arrayPropIter{

Callers

nothing calls this directly

Calls 2

asciiStringTypeAlias · 0.85
iterateStringKeysMethod · 0.65

Tested by

no test coverage detected