function requestSomething(url, other, args) {
            return new Promise(function(resolve, reject) {
                request(url, function(err, res) {
                    if (err) return reject(err);
                    resolve(res);
                });
            });
        }
// A function uses some parameters and returns something.
A function uses some parameters and returns something.
A function uses some parameters and returns something .
function requestSomething(url, other, args) {
            return new Promise(function(resolve, reject) {
                request(url, function(err, res) {
                    if (err) return reject(err);
                    resolve(res);
                });
            });
        }
function requestSomething ( url , other , args ) { return new Promise ( function ( resolve , reject ) { request ( url , function ( err , res ) { if ( err ) return reject ( err ) ; resolve ( res ) ; } ) ; } ) ; }
A function uses some parameters and returns something.
A function uses some parameters and returns something .