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.
Adding it on the prototype would be considered an Object Oriented approach. It is good to know both ways, but in production it is not advised to extend any native prototypes.
Care to elaborate?
I don't think this is the proper type of programming to encourage.
would be better
In my opinion
-1 for i
-1 for forEach rather than map ( the behavior of map is more verbose than modifying an object and expecting it to be modifed in the original array )
however, i am sure the forEach is more performant, if only marginally.