UNPKG

@tidyjs/tidy

Version:

Tidy up your data with JavaScript, inspired by dplyr and the tidyverse

14 lines (9 loc) 316 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var d3Array = require('d3-array'); function median(key) { const keyFn = typeof key === "function" ? key : (d) => d[key]; return (items) => d3Array.median(items, keyFn); } exports.median = median; //# sourceMappingURL=median.js.map