常用判断函数jsUpdated: 2025-08-19是否是promise 🔗1 2 3 export function isPromise(object: any): object is Promise<any> { return Promise.resolve(object) === object; } Tagsjs Like Save Share