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

Method _delete

object_dynamic.go:709–714  ·  view source on GitHub ↗
(idx int, throw bool)

Source from the content-addressed store, hash-verified

707}
708
709func (a *dynamicArray) _delete(idx int, throw bool) bool {
710 if a._has(idx) {
711 a._setIdx(idx, _undefined, throw)
712 }
713 return true
714}
715
716func (a *dynamicArray) deleteStr(name unistring.String, throw bool) bool {
717 if idx, ok := strToInt(name); ok {

Callers 2

deleteStrMethod · 0.95
deleteIdxMethod · 0.95

Calls 2

_hasMethod · 0.95
_setIdxMethod · 0.95

Tested by

no test coverage detected