code: function promisedConcat(promises, unknown) {
      return promises.then(function(values) {
        return Promise.resolve(unknown).then(function(value) {
          return values.concat([ value ]);
        });
      });
    }
docs: Utility function that takes promise of `a` array and maybe promise `b` as arguments and returns promise for `a.concat(b)`.