backup commit

This commit is contained in:
skybldev
2024-08-30 10:22:46 -04:00
parent 1ee8ab8e74
commit 97ab6a5832
2 changed files with 32 additions and 3 deletions

26
test.js Normal file
View File

@@ -0,0 +1,26 @@
const a = {
"2100": 30,
"2101": 31,
"2102": 32,
"2103": 33,
};
const b = {
"2100": 31,
"2101": 32,
"2102": 33,
"2103": 34,
"2104": 35,
"2105": 36,
"2106": 37
};
for (let el in b) {
if (!a[el]) {
a[el] = a[el - 1];
}
a[el] = b[el];
console.dir({ element: el, value: a });
}