UNPKG

mingo

Version:

MongoDB query language for in-memory objects

9 lines (8 loc) 193 B
import { Query } from "../../query"; const $match = (collection, expr, options) => { const q = new Query(expr, options); return collection.filter((o) => q.test(o)); }; export { $match };