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.
Wait what? That was it?
I'm still learning, but I assume this would be more expensive since we're creating a copy of the array using the spread syntax, right? Using the every method, would be O(n) at worst. While if we use this spread syntax itself would already be O(n) on top of another O(n) from the Math.max
Isn't this less readable and cost more or am I wrong? Asking because I am genuinely curious and still learning.
Same. I learned something new :)