mirror of
https://github.com/voson-wang/toon.git
synced 2026-01-29 15:24:10 +08:00
refactor: move function internally
This commit is contained in:
@@ -18,10 +18,6 @@ export interface ObjectWithQuotedKeys extends JsonObject {
|
||||
[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.
|
||||
*
|
||||
@@ -229,3 +225,7 @@ function mergeObjects(
|
||||
}
|
||||
|
||||
// #endregion
|
||||
|
||||
function canMerge(a: JsonValue, b: JsonValue): a is JsonObject {
|
||||
return isJsonObject(a) && isJsonObject(b)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user