@mmstack/primitives 21.9.0 → 21.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4622,8 +4622,11 @@ function toStore(source, { injector, vivify = false, noUnionLeaves = false, ...r
|
|
|
4622
4622
|
return idx >= 0 && idx < v.length;
|
|
4623
4623
|
}
|
|
4624
4624
|
}
|
|
4625
|
-
// nullish node values are routinely descended with vivify on
|
|
4626
|
-
|
|
4625
|
+
// nullish/primitive node values are routinely descended with vivify on or probed
|
|
4626
|
+
// with `in` (e.g. isMutable) — `in` must not throw
|
|
4627
|
+
return v == null || (typeof v !== 'object' && typeof v !== 'function')
|
|
4628
|
+
? false
|
|
4629
|
+
: Reflect.has(v, prop);
|
|
4627
4630
|
},
|
|
4628
4631
|
ownKeys() {
|
|
4629
4632
|
const v = untracked(source);
|