UNPKG

mingo

Version:

MongoDB query language for in-memory objects

6 lines (5 loc) 142 B
import { $topN } from "./topN"; const $top = (collection, expr, options) => $topN(collection, { ...expr, n: 1 }, options); export { $top };