Add u8a-only strict variants (#1503)

This commit is contained in:
Jaco
2022-05-25 10:02:01 +03:00
committed by GitHub
parent 2698f6779f
commit fbf973dc2a
20 changed files with 105 additions and 37 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
*/
export function isError (value: unknown): value is Error {
return (
((value && (value as Record<string, unknown>).constructor) === Error) ||
((value && (value as Error).constructor) === Error) ||
value instanceof Error
);
}