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

Method findIdx

array_sparse.go:27–31  ·  view source on GitHub ↗
(idx uint32)

Source from the content-addressed store, hash-verified

25}
26
27func (a *sparseArrayObject) findIdx(idx uint32) int {
28 return sort.Search(len(a.items), func(i int) bool {
29 return a.items[i].idx >= idx
30 })
31}
32
33func (a *sparseArrayObject) _setLengthInt(l uint32, throw bool) bool {
34 ret := true

Callers 8

_setLengthIntMethod · 0.95
_getIdxMethod · 0.95
addMethod · 0.95
_setOwnIdxMethod · 0.95
hasOwnPropertyStrMethod · 0.95
hasOwnPropertyIdxMethod · 0.95
_defineIdxPropertyMethod · 0.95
_deleteIdxPropMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected