MCPcopy Create free account
hub / github.com/breck7/scroll / ascendingDefined

Function ascendingDefined

external/.d3.js:576–578  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

574}
575
576function ascendingDefined(a, b) {
577 return (a == null || !(a >= a)) - (b == null || !(b >= b)) || (a < b ? -1 : a > b ? 1 : 0);
578}
579
580function groupSort(values, reduce, key) {
581 return (reduce.length !== 2

Callers 3

sortFunction · 0.85
quantileIndexFunction · 0.85
rankFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected