How can I add a static prefix to a random string? #1548
Answered
by
dubzzz
thislooksfun
asked this question in
Q&A
-
I'm trying to generate random hex color strings, so I need something of the form |
Beta Was this translation helpful? Give feedback.
Answered by
dubzzz
Feb 22, 2021
Replies: 1 comment
-
Something like the snippet below should do what you are looking for: fc.hexaString({ minLength: 6, maxLength: 6 })
.map(s => `#${s}`) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
thislooksfun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Something like the snippet below should do what you are looking for: