use for-of statements to replace for and for-in
This commit is contained in:
+2
-2
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user