util: fix format bug (#499)

pull/500/head
panda 2 years ago committed by GitHub
parent f3641eff48
commit 2cd89d7258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -63,7 +63,7 @@ String.prototype.format = function formatStr(...args) {
} }
} else return this.formatFromArray(args); } else return this.formatFromArray(args);
} }
return result; return result.toString();
}; };
export function isClass(obj: any, strict = false): obj is new (...args: any) => any { export function isClass(obj: any, strict = false): obj is new (...args: any) => any {

Loading…
Cancel
Save