* 判断某个元素是否为Promise对象 * @param {Function} obj * @return {Boolean}
(obj)
| 176 | * @return {Boolean} |
| 177 | */ |
| 178 | isPromiseLike(obj) { |
| 179 | return obj && this.isFunction(obj.then) |
| 180 | } |
| 181 | |
| 182 | /** |
| 183 | * 判断数组类型 |
nothing calls this directly
no test coverage detected