6 lines
107 B
JavaScript
6 lines
107 B
JavaScript
|
|
||
|
function isPromise(obj) {
|
||
|
return obj && typeof obj.then === 'function';
|
||
|
}
|
||
|
|
||
|
module.exports = isPromise;
|