doc/issue-service/sample.js
function allIssues (client, repo) {
  return client.getIssues(repo).then(function (issues) {
    return issues.map(convertIssue);
  });
}
function allIssues (client, repo) {
  return client.getIssues(repo).then(function (issues) {
    return issues.map(convertIssue);
  });
}
function allIssues ( client , repo ) { return client . getIssues ( repo ) . then ( function ( issues ) { return issues . map ( convertIssue ) ; } ) ; }
Assuming client.getIssues returns promise of issues
Assuming client . getIssues returns promise of issues