UNPKG

mingo

Version:

MongoDB query language for in-memory objects

8 lines (7 loc) 207 B
import { computeValue } from "../../core"; const $first = (collection, expr, options) => { return collection.length > 0 ? computeValue(collection[0], expr, null, options) : void 0; }; export { $first };