INNER CODE UNIT · JavaScript

LevelUP

Level/levelup · lib/levelup.js:23

function LevelUP (db, options, callback) {
  if (!(this instanceof LevelUP)) {
    return new LevelUP(db, options, callback)
  }

  let error

  EventEmitter.call(this)
  this.setMaxListeners(Infinity)

  if (typeof options === 'function') {
    callback = options
    options = {}
  }

  options = options || {}

  if (!db || typeof db !== 'object') {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…