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

Method Len

builtin_array.go:1809–1811  ·  view source on GitHub ↗

sort.Interface

()

Source from the content-addressed store, hash-verified

1807// sort.Interface
1808
1809func (a *arraySortCtx) Len() int {
1810 return a.obj.sortLen()
1811}
1812
1813func (a *arraySortCtx) Less(j, k int) bool {
1814 return a.sortCompare(a.obj.sortGet(j), a.obj.sortGet(k)) < 0

Callers

nothing calls this directly

Calls 1

sortLenMethod · 0.65

Tested by

no test coverage detected