UNPKG

mingo

Version:

MongoDB query language for in-memory objects

9 lines (8 loc) 207 B
import { assert } from "../../util"; const $skip = (collection, expr, _options) => { assert(expr >= 0, "$skip value must be a non-negative integer"); return collection.drop(expr); }; export { $skip };