src/index.js
function db(objectName) {
    if (_.isBoolean(save.hasLoaded)) deasync.loopWhile(() => !save.hasLoaded);
    if (!_.has(objects, objectName)) objects[objectName] = {};
    return createMethods(objects[objectName], save.bind(null, objectName));
  }
function db(objectName) {
    if (_.isBoolean(save.hasLoaded)) deasync.loopWhile(() => !save.hasLoaded);
    if (!_.has(objects, objectName)) objects[objectName] = {};
    return createMethods(objects[objectName], save.bind(null, objectName));
  }
function db ( objectName ) { if ( _ . isBoolean ( save . hasLoaded ) ) deasync . loopWhile ( ( ) => ! save . hasLoaded ) ; if ( ! _ . has ( objects , objectName ) ) objects [ objectName ] = { } ; return createMethods ( objects [ objectName ] , save . bind ( null , objectName ) ) ; }
The database instance.

@param {string} objectName
@param {Object} methods
The database instance .