UNPKG

remeda

Version:

A utility library for JavaScript and Typescript.

2 lines 297 B
import{purry as e}from"./purry-DH9cw9sy.js";function t(...t){return e(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}export{t as median}; //# sourceMappingURL=median-BEONh1VB.js.map