use for-of statements to replace for and for-in

This commit is contained in:
MaysWind
2025-09-14 01:40:53 +08:00
parent 67bc81d3e2
commit 4700446ca0
38 changed files with 389 additions and 597 deletions
+2 -2
View File
@@ -20,8 +20,8 @@ export function getColorsInRows(allColorValues: ColorValue[], itemPerRow: number
ret[++rowCount] = [];
}
ret[rowCount].push({
color: allColorValues[i]
ret[rowCount]!.push({
color: allColorValues[i] as ColorValue
});
}