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.
JS: for sample tests, values passed to
Test.assertSimilar
are reversed.Could you please explain, in words of one syllable or less (OK, or more), why
_forEach
has to support arrays that are not arrays as if they were arrays? (Talking aboutnull
andundefined
here.)I could understand throwing an
Error
for any array argument that is not an array (or any function argument that is not a function). I do not understand this. To put it bluntly: get your datatypes straight. But I do want to understand.Please, explain me this?
This comment is hidden because it contains spoiler information about the solution