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.
He needs to assign ("a" === array) to compare between the current e (element) and the next element a[i+1] so he can return any of the three options.
I understand that "a" in the filter iterations is the input array. Is there a benefit to using "a" in the filter iterations over "array"?
It took some time to realize how the logic works. An interesting solution but a little bit confusing.