s2cfgtojson 3.2.8 → 3.2.9
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/Struct.mts +3 -0
- package/package.json +1 -1
package/Struct.mts
CHANGED
|
@@ -144,6 +144,9 @@ export class Struct {
|
|
|
144
144
|
const clone = this.clone();
|
|
145
145
|
clone.entries().forEach(([key, value], i, arr) => {
|
|
146
146
|
clone[key] = callback([key as K, value as V], i, arr as any);
|
|
147
|
+
if (clone[key] === null || clone[key] === undefined) {
|
|
148
|
+
delete clone[key];
|
|
149
|
+
}
|
|
147
150
|
});
|
|
148
151
|
return clone;
|
|
149
152
|
}
|