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

Method deleteStr

array.go:481–486  ·  view source on GitHub ↗
(name unistring.String, throw bool)

Source from the content-addressed store, hash-verified

479}
480
481func (a *arrayObject) deleteStr(name unistring.String, throw bool) bool {
482 if idx := strToArrayIdx(name); idx != math.MaxUint32 {
483 return a._deleteIdxProp(idx, throw)
484 }
485 return a.baseObject.deleteStr(name, throw)
486}
487
488func (a *arrayObject) deleteIdx(idx valueInt, throw bool) bool {
489 if idx := toIdx(idx); idx != math.MaxUint32 {

Callers

nothing calls this directly

Calls 3

_deleteIdxPropMethod · 0.95
strToArrayIdxFunction · 0.85
deleteStrMethod · 0.65

Tested by

no test coverage detected