fix: properly check if data can be processed

This commit is contained in:
Alex Inkin
2022-06-19 10:13:09 +03:00
parent a3aa821847
commit 0317506449

View File

@@ -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[] {