UNPKG

mingo

Version:

MongoDB query language for in-memory objects

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