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.
Can some one explain this code. The filter logic is difficult to understand
thanks on the explanation!!
the object key and value,let key as the item,value as the count of the item!
How clever!
Just as elegant as it sounds
great!, my approach is same, but a little more understandable code for begginers.
Thanks a lot McBurd for your reply and effort! That actually does help and is a great in depth ressource to start with. Awesome! :)
So there isn't actaully a term that I know of that one could search for this specific type of assignment, however, I did find this article, which I hope helps you.
https://mariusschulz.com/blog/the-and-and-or-operators-in-javascript
does filter method assume to filter out false if no filtering condition is given?
Same! I dont see that syntax too often and I dont fully understand this.
Do you know how this syntax is called or how to look that up?
Very cool! I like the way you assigned the values to the cache!
yes, it is normal, because its a cache
with cache into the filter function he is just asking
if cache[n] === undefined cache[n] will be 0, the first time
if cache[n] exist that means that you should increment +1
so the condition that he is returning is
if in my cache there is a number less than or equal to the argument x , return that
Great job!
Very Clever
I am new to this. Straight up took me 30 minutes to understand this. It really is clever, even I can tell after understanding it.
Loading more items...