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

Function ascendingDefined

src/sort.js:37–39  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

35}
36
37export function ascendingDefined(a, b) {
38 return (a == null || !(a >= a)) - (b == null || !(b >= b)) || (a < b ? -1 : a > b ? 1 : 0);
39}

Callers 3

rankFunction · 0.90
quantileIndexFunction · 0.90
sortFunction · 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…