util: fix format bug (#499)

This commit is contained in:
panda authored and GitHub committed 2023-01-29 19:35:18 +08:00
1 parent f3641eff48
commit 2cd89d7258
1 file changed
+1 -1
+1 -1
View File
@@ -63,7 +63,7 @@ String.prototype.format = function formatStr(...args) {
}
} else return this.formatFromArray(args);
}
return result;
return result.toString();
};
export function isClass(obj: any, strict = false): obj is new (...args: any) => any {