daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const rgbToHex = rgb =>
  2.   '#' + rgb
  3.     .match(/rgb\((\d*), (\d*), (\d*)\)/)
  4.     .slice(1,4)
  5.     .map(d => Number(d).toString(16).padStart(2, '0'))
  6.     .join('')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top