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

Method hasOwnPropertyStr

object_gomap_reflect.go:199–205  ·  view source on GitHub ↗
(name unistring.String)

Source from the content-addressed store, hash-verified

197}
198
199func (o *objectGoMapReflect) hasOwnPropertyStr(name unistring.String) bool {
200 key := o.strToKey(name.String(), false)
201 if key.IsValid() && o.fieldsValue.MapIndex(key).IsValid() {
202 return true
203 }
204 return false
205}
206
207func (o *objectGoMapReflect) hasOwnPropertyIdx(idx valueInt) bool {
208 key := o.toKey(idx, false)

Callers 1

setForeignStrMethod · 0.95

Calls 2

strToKeyMethod · 0.95
StringMethod · 0.65

Tested by

no test coverage detected