forked from lix-project/lix-website
11 lines
181 B
JavaScript
11 lines
181 B
JavaScript
'use strict';
|
|
module.exports = x => (
|
|
x instanceof Promise ||
|
|
(
|
|
x !== null &&
|
|
typeof x === 'object' &&
|
|
typeof x.then === 'function' &&
|
|
typeof x.catch === 'function'
|
|
)
|
|
);
|