Have you thought about how to handle words with repeating letters?
Matthew Woop

Thanks :)

RE: problems with duplication — indeed! It’s a pretty easy problem to solve, but you lose the simplicity of working with simple strings.

The solution would be to use a random ID generator like node-uuid. Instead of working with strings, you’d work with objects:

id: 'bee4c396-da61-4120-b34d-c44588e599f9',
value: 'A'

Then, you’d use the `id` for the key, and the `value` for display.

Like what you read? Give Joshua Comeau a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.