d3-array
d3-array copied to clipboard
Array manipulation, ordering, searching, summarizing, etc.
some like `d3.ascending` `d3.descending` have no problems, some are not: ```js const bigints = [ 1n, 2n, 3n, -300n ]; bigints.sort(d3.descending); // okay d3.sum(bigints); // error ``` ``` file:///path/to/node_modules/d3-array/src/sum.js:5 if...
```js const values = [0.9299999999999999, 1.07]; d3.bin().thresholds(500)(values).filter((d) => d.length); ``` this returns: `[[1.07, x0: 1.07, x1: 1.0702]]`; the first value has disappeared.
Fixes #282.