Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
No idea, just copied and pasted it and it still works for me. Why wouldn't it work?
This solution does not pass the test. Has something changed or been updated?
Wow, I didn't know you can compare letters like that.
habit. in react etc to trigger an update props/state need to be actually different objects, not mutations. spread makes a new object instead of mutating, but if that doesn't matter then
push
would be a bit of a performance gainThis comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
nice job---and thanks for making the names more descriptive. i already mentioned that you don't need the temporary variables since replace is not mutating, so yeah...
aside from that, i would just note that your regex doesn't need the
[a-z]
you've got in there, since\w+
handles "word characters, one or more."