什么是Promise Like 依据Promise A+规范: promise is an object or function with then method whose behavior conforms to this specification.
判断代码:
// 判断是否是Promise Like
function isPromiseLiske(value){
return typeof value != null &&
(typeof value === 'Object' || typeof value === 'function')&&
(typeof value.then === 'function')
}