index.js
function promiseFn(msg, key, answers, fn) {
  "use strict";
  answers = answers || {};
  return fn(msg).then(
    function(resp) {
      answers[key] = resp;
      return answers;
    }
  );
}
function promiseFn(msg, key, answers, fn) {
  "use strict";
  answers = answers || {};
  return fn(msg).then(
    function(resp) {
      answers[key] = resp;
      return answers;
    }
  );
}
function promiseFn ( msg , key , answers , fn ) { "use strict" ; answers = answers || { } ; return fn ( msg ) . then ( function ( resp ) { answers [ key ] = resp ; return answers ; } ) ; }
Private functions
Private functions