UNPKG

emulate-mongo-2-driver

Version:

Emulate the Mongo 2.x nodejs driver on top of the Mongo 3.x nodejs driver, for bc

18 lines (14 loc) 284 B
const toTinsel = Symbol.for('@@mdb.callbacks.toTinsel'); const omit = function (obj, keys) { const n = {}; Object.keys(obj).forEach(function(key) { if (keys.indexOf(key) === -1) { n[key] = obj[key]; } }); return n; }; module.exports = { toTinsel, omit };