Created
October 22, 2023 02:46
-
-
Save nakasyou/e504f4bdcddf0bc2881e6eed55069f74 to your computer and use it in GitHub Desktop.
get random color
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @ts-check | |
/** | |
* Get random color code | |
* @return {string} | |
*/ | |
export const getRandomColor = () => '#' + Math.random().toString(16).slice(2, 8) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment