MCPcopy Index your code
hub / github.com/ether/etherpad / cmpNum

Function cmpNum

src/node/hooks/express/adminsettings.ts:272–272  ·  view source on GitHub ↗
(a: number, b: number)

Source from the content-addressed store, hash-verified

270 const dir = query.ascending ? 1 : -1;
271 const cmpStr = (a: string, b: string) => a < b ? -dir : a > b ? dir : 0;
272 const cmpNum = (a: number, b: number) => a < b ? -dir : a > b ? dir : 0;
273
274 let results: PadQueryResult[];
275 if (needsFullScan) {

Callers 1

adminsettings.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected