UNPKG

mingo

Version:

MongoDB query language for in-memory objects

6 lines (5 loc) 176 B
import { $percentile } from "./percentile"; const $median = (collection, expr, options) => $percentile(collection, { ...expr, p: [0.5] }, options).pop(); export { $median };