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.
Custom assertion messages which present inputs on failue would be nice.
You're right, there's no need to call that a second time. Thank you!
You are calling toLoweCase twice: first time on the whole text, then again in the filter function. What's the point in calling again toLowerCase() in filter function?
Thank you for your feedback!
This comment is hidden because it contains spoiler information about the solution
This solution is not best practice, returning a boolean from a ternary operator is a waste of characters and known as antipattern
Thank you for your solution! Is it run?
This comment is hidden because it contains spoiler information about the solution
You don't need the first if- statement at all, even though the calculation isn't that burdening