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

Method hasPropertyStr

object.go:284–292  ·  view source on GitHub ↗
(name unistring.String)

Source from the content-addressed store, hash-verified

282}
283
284func (o *baseObject) hasPropertyStr(name unistring.String) bool {
285 if o.val.self.hasOwnPropertyStr(name) {
286 return true
287 }
288 if o.prototype != nil {
289 return o.prototype.self.hasPropertyStr(name)
290 }
291 return false
292}
293
294func (o *baseObject) hasPropertyIdx(idx valueInt) bool {
295 return o.val.self.hasPropertyStr(idx.string())

Callers

nothing calls this directly

Calls 2

hasOwnPropertyStrMethod · 0.65
hasPropertyStrMethod · 0.65

Tested by

no test coverage detected