UNPKG

d2-ui

Version:
4 lines (3 loc) 88 B
d3.descending = function(a, b) { return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN; };