Files
30-seconds-of-code/test/RGBToHex/RGBToHex.js
2018-01-09 06:09:49 -05:00

1 line
87 B
JavaScript

module.exports = (r, g, b) => ((r << 16) + (g << 8) + b).toString(16).padStart(6, '0');