utils.js 305 B

12345678910111213
  1. "use strict";
  2. function noop() {}
  3. /**
  4. * Reflects a promise but does not expose any
  5. * underlying value or rejection from that promise.
  6. * @param {Promise} promise [description]
  7. * @return {Promise} [description]
  8. */
  9. exports.reflector = function(promise) {
  10. return promise.then(noop, noop);
  11. };