feat: override method with default interception behavior #663

This commit is contained in:
Hufe921
2024-06-27 21:31:59 +08:00
parent 146ac75a00
commit 9a4b4f9a4a
7 changed files with 67 additions and 23 deletions
+4
View File
@@ -326,3 +326,7 @@ export function isObjectEqual(obj1: unknown, obj2: unknown): boolean {
}
return !obj1Keys.some(key => obj2[key] !== obj1[key])
}
export function isPromiseFunction(fn: Function): boolean {
return fn?.constructor?.name === 'AsyncFunction'
}