UNPKG

remeda

Version:

A utility library for JavaScript and Typescript.

2 lines (1 loc) 244 B
import{a as t}from"./chunk-WIMGWYZL.js";function i(...e){return t(o,e)}var a=(e,n)=>e-n;function o(e){if(e.length===0)return;let n=[...e].sort(a);if(n.length%2!==0)return n[(n.length-1)/2];let r=n.length/2;return(n[r]+n[r-1])/2}export{i as a};