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

Method hasPropertyStr

typedarrays.go:857–866  ·  view source on GitHub ↗
(name unistring.String)

Source from the content-addressed store, hash-verified

855}
856
857func (a *typedArrayObject) hasPropertyStr(name unistring.String) bool {
858 idx, ok := strToIntNum(name)
859 if ok {
860 return a._hasIdx(idx)
861 }
862 if idx == 0 {
863 return false
864 }
865 return a.baseObject.hasPropertyStr(name)
866}
867
868func (a *typedArrayObject) hasPropertyIdx(idx valueInt) bool {
869 return a.hasOwnPropertyIdx(idx)

Callers

nothing calls this directly

Calls 3

_hasIdxMethod · 0.95
strToIntNumFunction · 0.85
hasPropertyStrMethod · 0.65

Tested by

no test coverage detected