Front end of the Slack clone application.

123456
  1. module.exports = isPromise;
  2. function isPromise(obj) {
  3. return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
  4. }