We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
let
const
1 parent 40387a0 commit 45490dfCopy full SHA for 45490df
1 file changed
packages/color-convert/src/index.ts
@@ -186,7 +186,7 @@ export const rgbStringToHsva = rgbaStringToHsva;
186
187
/** Converts an RGBA color plus alpha transparency to hex */
188
export const rgbaToHex = ({ r, g, b }: RgbaColor): string => {
189
- let bin = (r << 16) | (g << 8) | b;
+ const bin = (r << 16) | (g << 8) | b;
190
return `#${((h) => new Array(7 - h.length).join('0') + h)(bin.toString(16))}`;
191
};
192
0 commit comments