mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-27 02:41:55 +00:00
feat: make watch$ strictNullCheck compatible (#34)
* feat: make `watch$` strictNullCheck compatible * chore: send initial value to subscribers * let values emit when undefined * fix: properly check if data can be processed Co-authored-by: Lucy Cifferello <12953208+elvece@users.noreply.github.com>
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