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

Method hasPropertyIdx

object_dynamic.go:664–672  ·  view source on GitHub ↗
(idx valueInt)

Source from the content-addressed store, hash-verified

662}
663
664func (a *dynamicArray) hasPropertyIdx(idx valueInt) bool {
665 if a.hasOwnPropertyIdx(idx) {
666 return true
667 }
668 if proto := a.prototype; proto != nil {
669 return proto.self.hasPropertyIdx(idx)
670 }
671 return false
672}
673
674func (a *dynamicArray) _has(idx int) bool {
675 return idx >= 0 && idx < a.a.Len()

Callers

nothing calls this directly

Calls 2

hasOwnPropertyIdxMethod · 0.95
hasPropertyIdxMethod · 0.65

Tested by

no test coverage detected