-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Color.class update #3615
Color.class update #3615
Conversation
Thanks for the change, could you address my comment? |
a = a.toString(16); | ||
a = (a.length === 1) ? ('0' + a) : a; | ||
|
||
return r.toUpperCase() + g.toUpperCase() + b.toUpperCase() + a.toUpperCase(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all this could be return this.toHex() + a.toUpperCase()
so we do not need to duplicate toHex code again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's do :)
New Unit Test
JSDoc Update
New toHexa() function