MCPcopy Create free account
hub / github.com/tinyplex/tinybase / oddDescend

Function oddDescend

test/unit/core/other/indexes.test.ts:47–48  ·  view source on GitHub ↗
(sortKey1: SortKey, sortKey2: SortKey, sliceId: Id)

Source from the content-addressed store, hash-verified

45const oddAscend = (sortKey1: SortKey, sortKey2: SortKey, sliceId: Id) =>
46 sliceId == 'odd' ? ((sortKey1 ?? 0) > (sortKey2 ?? 0) ? 1 : -1) : 0;
47const oddDescend = (sortKey1: SortKey, sortKey2: SortKey, sliceId: Id) =>
48 sliceId == 'odd' ? ((sortKey1 ?? 0) < (sortKey2 ?? 0) ? 1 : -1) : 0;
49
50beforeEach(() => {
51 store = createStore();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…