MCPcopy Create free account
hub / github.com/d3/d3-array / ascending

Function ascending

src/ascending.js:1–3  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

1export default function ascending(a, b) {
2 return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
3}

Callers 9

groupSort-test.jsFile · 0.90
ascendingBoxFunction · 0.90
ascendingBoxValueFunction · 0.90
ascending-test.jsFile · 0.90
rank-test.jsFile · 0.85
bisectorFunction · 0.85
greatestFunction · 0.85
leastFunction · 0.85
groupSortFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…