const isPromise = obj => Boolean(obj) && typeof obj.then === 'function';
This can be a tool save into your toolbox.