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

Method stringKeys

string.go:278–284  ·  view source on GitHub ↗
(all bool, accum []Value)

Source from the content-addressed store, hash-verified

276}
277
278func (s *stringObject) stringKeys(all bool, accum []Value) []Value {
279 for i := 0; i < s.length; i++ {
280 accum = append(accum, asciiString(strconv.Itoa(i)))
281 }
282
283 return s.baseObject.stringKeys(all, accum)
284}
285
286func (s *stringObject) deleteStr(name unistring.String, throw bool) bool {
287 if i := strToGoIdx(name); i >= 0 && i < s.length {

Callers

nothing calls this directly

Calls 2

asciiStringTypeAlias · 0.85
stringKeysMethod · 0.65

Tested by

no test coverage detected