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

Method deleteIdx

array.go:488–493  ·  view source on GitHub ↗
(idx valueInt, throw bool)

Source from the content-addressed store, hash-verified

486}
487
488func (a *arrayObject) deleteIdx(idx valueInt, throw bool) bool {
489 if idx := toIdx(idx); idx != math.MaxUint32 {
490 return a._deleteIdxProp(idx, throw)
491 }
492 return a.baseObject.deleteStr(idx.string(), throw)
493}
494
495func (a *arrayObject) export(ctx *objectExportCtx) interface{} {
496 if v, exists := ctx.get(a.val); exists {

Callers

nothing calls this directly

Calls 4

_deleteIdxPropMethod · 0.95
toIdxFunction · 0.85
deleteStrMethod · 0.65
stringMethod · 0.65

Tested by

no test coverage detected