mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 02:11:54 +00:00
fix: properly check if data can be processed
This commit is contained in:
@@ -75,7 +75,7 @@ function recursiveApply<T extends Record<string, T>> (data: T, path: readonly st
|
||||
}
|
||||
|
||||
function isObject (val: any): val is Record<string, unknown> {
|
||||
return typeof val === 'object' && !Array.isArray(val) && val !== null
|
||||
return typeof val === 'object' && val !== null
|
||||
}
|
||||
|
||||
function jsonPathToKeyArray (path: string): string[] {
|
||||
|
||||
Reference in New Issue
Block a user