lib/index.js
function wrap(cb, hasResult) {
  return function(res) {
    if (type(cb) == 'function') {
      hasResult ? cb(null, res) : cb();
    } else if (hasResult && storage.development) {
      console.log(res);
    }
    return res;
  };
}
function wrap(cb, hasResult) {
  return function(res) {
    if (type(cb) == 'function') {
      hasResult ? cb(null, res) : cb();
    } else if (hasResult && storage.development) {
      console.log(res);
    }
    return res;
  };
}
function wrap ( cb , hasResult ) { return function ( res ) { if ( type ( cb ) == 'function' ) { hasResult ? cb ( null , res ) : cb ( ) ; } else if ( hasResult && storage . development ) { console . log ( res ) ; } return res ; } ; }
Wrap promise style response to callback style.
If `cb` does not specified, it uses console.log in development mode.

@param {Function} cb
@param {Boolean} [hasResult]
@return {Function}
Wrap promise style response to callback style . If cb does not specified it uses console . log in development mode .