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

Method hasOwnPropertyStr

string.go:305–310  ·  view source on GitHub ↗
(name unistring.String)

Source from the content-addressed store, hash-verified

303}
304
305func (s *stringObject) hasOwnPropertyStr(name unistring.String) bool {
306 if i := strToGoIdx(name); i >= 0 && i < s.length {
307 return true
308 }
309 return s.baseObject.hasOwnPropertyStr(name)
310}
311
312func (s *stringObject) hasOwnPropertyIdx(idx valueInt) bool {
313 i := int64(idx)

Callers

nothing calls this directly

Calls 2

strToGoIdxFunction · 0.85
hasOwnPropertyStrMethod · 0.65

Tested by

no test coverage detected