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

Function descending

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

Source from the content-addressed store, hash-verified

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

Callers 2

descending-test.jsFile · 0.90
groupSort-test.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…