Remove duplicate code
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user