UNPKG

levelup

Version:

Fast & simple storage - a Node.js-style LevelDB wrapper

8 lines (6 loc) 232 B
exports.getCallback = function (options, callback) { return typeof options === 'function' ? options : callback } exports.getOptions = function (options) { return typeof options === 'object' && options !== null ? options : {} }