svelte-common 6.7.0 → 6.7.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.
- package/package.json +1 -1
- package/src/filter.mjs +8 -0
package/package.json
CHANGED
package/src/filter.mjs
CHANGED
|
@@ -16,7 +16,14 @@ function collectionOp(value, against, op) {
|
|
|
16
16
|
|
|
17
17
|
function allOp(value, against, op) {
|
|
18
18
|
switch (typeof value) {
|
|
19
|
+
case "undefined":
|
|
20
|
+
return false;
|
|
21
|
+
|
|
19
22
|
case "object":
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
|
|
20
27
|
if (value instanceof Map) {
|
|
21
28
|
return collectionOp(value.keys(), against, op);
|
|
22
29
|
}
|
|
@@ -138,6 +145,7 @@ function allOp(value, against, op) {
|
|
|
138
145
|
return value == against;
|
|
139
146
|
}
|
|
140
147
|
|
|
148
|
+
console.log("C", value, against);
|
|
141
149
|
return false;
|
|
142
150
|
}
|
|
143
151
|
|