UNPKG

remeda

Version:

A utility library for JavaScript and Typescript.

2 lines 284 B
const e=require(`./purry-3_3M-Pet.cjs`);function t(...t){return e.t(r,t)}const n=(e,t)=>e-t;function r(e){if(e.length===0)return;let t=[...e].sort(n);if(t.length%2!=0)return t[(t.length-1)/2];let r=t.length/2;return(t[r]+t[r-1])/2}exports.median=t; //# sourceMappingURL=median.cjs.map