Buckets:
| import none from "./none.js"; | |
| export default function(series) { | |
| var peaks = series.map(peak); | |
| return none(series).sort(function(a, b) { return peaks[a] - peaks[b]; }); | |
| } | |
| function peak(series) { | |
| var i = -1, j = 0, n = series.length, vi, vj = -Infinity; | |
| while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i; | |
| return j; | |
| } | |
Xet Storage Details
- Size:
- 339 Bytes
- Xet hash:
- d33be3f1aff9a3a89fccc13e5351913fbeff48b9e0bdb7341b5f5ead95d32ea8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.