code: 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;
    };
  }
docs: 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}