UNPKG

mingo

Version:

MongoDB query language for in-memory objects

14 lines (13 loc) 290 B
import { assert, isArray } from "../../../util"; import { $or } from "./or"; function $nor(_, rhs, options) { assert( isArray(rhs), "Invalid expression. $nor expects value to be an array." ); const f = $or("$or", rhs, options); return (obj) => !f(obj); } export { $nor };