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

Method stringKeys

object_gomap_reflect.go:259–266  ·  view source on GitHub ↗
(_ bool, accum []Value)

Source from the content-addressed store, hash-verified

257}
258
259func (o *objectGoMapReflect) stringKeys(_ bool, accum []Value) []Value {
260 // all own keys are enumerable
261 for _, key := range o.fieldsValue.MapKeys() {
262 accum = append(accum, o.keyToString(key))
263 }
264
265 return accum
266}
267
268func (*objectGoMapReflect) keyToString(key reflect.Value) String {
269 kind := key.Kind()

Callers

nothing calls this directly

Calls 1

keyToStringMethod · 0.95

Tested by

no test coverage detected