Remove duplicate code

This commit is contained in:
2026-10-13 11:57:43 -03:00
parent dfc6a6d77b
commit 5165698fe3
50 changed files with 307 additions and 812 deletions
+2 -1
View File
@@ -1236,6 +1236,7 @@ function validate_stack(value: unknown, field: string): Problems {
return problems;
}
function is_object(value: unknown): value is Record<string, unknown> {
// a json object, not null or an array
export function is_object(value: unknown): value is Record<string, unknown> {
return typeof value === "object" && value !== null && !Array.isArray(value);
}