UNPKG

mingo

Version:

MongoDB query language for in-memory objects

10 lines (9 loc) 274 B
import { computeValue } from "../../../core/_internal"; import { isEmpty } from "../../../util"; const $toLower = (obj, expr, options) => { const value = computeValue(obj, expr, null, options); return isEmpty(value) ? "" : value.toLowerCase(); }; export { $toLower };