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

Method Less

builtin_array.go:1813–1815  ·  view source on GitHub ↗
(j, k int)

Source from the content-addressed store, hash-verified

1811}
1812
1813func (a *arraySortCtx) Less(j, k int) bool {
1814 return a.sortCompare(a.obj.sortGet(j), a.obj.sortGet(k)) < 0
1815}
1816
1817func (a *arraySortCtx) Swap(j, k int) {
1818 a.obj.swap(j, k)

Callers

nothing calls this directly

Calls 2

sortCompareMethod · 0.95
sortGetMethod · 0.65

Tested by

no test coverage detected