UNPKG

mingo

Version:

MongoDB query language for in-memory objects

11 lines (10 loc) 313 B
import { computeValue } from "../../../core"; import { truthy } from "../../../util"; const $or = (obj, expr, options) => { const value = computeValue(obj, expr, null, options); const strict = options.useStrictMode; return truthy(value, strict) && value.some((v) => truthy(v, strict)); }; export { $or };