You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 181B

12345678910
  1. 'use strict';
  2. module.exports = x => (
  3. x instanceof Promise ||
  4. (
  5. x !== null &&
  6. typeof x === 'object' &&
  7. typeof x.then === 'function' &&
  8. typeof x.catch === 'function'
  9. )
  10. );