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

Method _hasStr

object_goarray_reflect.go:83–88  ·  view source on GitHub ↗
(name unistring.String)

Source from the content-addressed store, hash-verified

81}
82
83func (o *objectGoArrayReflect) _hasStr(name unistring.String) bool {
84 if idx := strToIdx64(name); idx >= 0 && idx < int64(o.fieldsValue.Len()) {
85 return true
86 }
87 return false
88}
89
90func (o *objectGoArrayReflect) _getIdx(idx int) Value {
91 if v := o.valueCache.get(idx); v != nil {

Callers 1

hasOwnPropertyStrMethod · 0.95

Calls 2

strToIdx64Function · 0.85
LenMethod · 0.65

Tested by

no test coverage detected