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.
Just out of curiosity, why do you pass in
Math
as the value ofthis
toapply
?@schm0 Not sure what you mean - this is native JS, not Underscore.
This wouldn't work if it was passed an empty array, because an empty array isn't
null
.The
key
variable needs to be declared, otherwise it'll throw an error in strict mode or be added as a property to the global object (window
in the browser,global
for Node).