refactor: move function internally

This commit is contained in:
Johann Schopplich
2025-11-11 17:24:18 +01:00
parent 2e7a27c3c0
commit 0a4c89e496

View File

@@ -18,10 +18,6 @@ export interface ObjectWithQuotedKeys extends JsonObject {
[QUOTED_KEY_MARKER]?: Set<string> [QUOTED_KEY_MARKER]?: Set<string>
} }
function canMerge(a: JsonValue, b: JsonValue): a is JsonObject {
return isJsonObject(a) && isJsonObject(b)
}
/** /**
* Expands dotted keys into nested objects in safe mode. * Expands dotted keys into nested objects in safe mode.
* *
@@ -229,3 +225,7 @@ function mergeObjects(
} }
// #endregion // #endregion
function canMerge(a: JsonValue, b: JsonValue): a is JsonObject {
return isJsonObject(a) && isJsonObject(b)
}