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.
It would be nice if there were unit tests
If you are looking for a specific element within an array, you could use 'find' instead of the 'filter', so you don't have to go through the array completely if you have already found the element.
https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Array/find
JS random tests fail on edge cases!
Better use !== to also check for equal data type.
Further information: https://stackoverflow.com/a/359509/10781526