.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / p-is-promise / index.js
1 'use strict';
2
3 const isPromise = input => (
4         input instanceof Promise ||
5         (
6                 input !== null &&
7                 typeof input === 'object' &&
8                 typeof input.then === 'function' &&
9                 typeof input.catch === 'function'
10         )
11 );
12
13 module.exports = isPromise;
14 // TODO: Remove this for the next major release
15 module.exports.default = isPromise;