Skip to content

Conversation

@MelodyW2022
Copy link

No description provided.

const letters = Object.keys(LETTER_CLONE);
const res = [];

while (res.length < 10) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This loop makes sense to me

const lettersInHandClone = [...lettersInHand];
for (const letter of input) {
const i = lettersInHandClone.indexOf(letter);
if (i !== -1) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I like how you did this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants