a guest Jun 14th, 2018 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- const rgbToHex = rgb =>
- '#' + rgb
- .match(/rgb\((\d*), (\d*), (\d*)\)/)
- .map(d => Number(d).toString(16).padStart(2, '0'))
RAW Paste Data