UNPKG

mingo

Version:

MongoDB query language for in-memory objects

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