lib/index.js
function get(key, cb) {
  return type(key) != 'array'
    ? localForage.getItem(key).then(wrap(cb, true), cb)
    : Promise.all(key.map(getSubkey)).then(wrap(cb, true), cb);

  function getSubkey(key) {
    return get(key, function() {}); // noob function to prevent logs
  }
}
function get(key, cb) {
  return type(key) != 'array'
    ? localForage.getItem(key).then(wrap(cb, true), cb)
    : Promise.all(key.map(getSubkey)).then(wrap(cb, true), cb);

  function getSubkey(key) {
    return get(key, function() {}); // noob function to prevent logs
  }
}
function get ( key , cb ) { return type ( key ) != 'array' ? localForage . getItem ( key ) . then ( wrap ( cb , true ) , cb ) : Promise . all ( key . map ( getSubkey ) ) . then ( wrap ( cb , true ) , cb ) ; function getSubkey ( key ) { return get ( key , function ( ) { } ) ; // noob function to prevent logs } }
Get `key`.

@param {Array|Mixed} key
@param {Function} cb
Get key .