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.
Thanks for the feedback.
I just removed all the date functions and it passed.
Thanks. This answers my question.
One more thing... Can you please try again and make sure your solution works in under 500ms?
I don't think you understood my question.
I'm wondering what exactly is limited to 500ms.
Is it the whole test suite of a few thousand tests?
Can you clarify this?
"12 seconds is too long :] So, in this kata, the time limit is 0.5 seconds(500ms)."
For what? I guess it's for a number of executions.
I can't see (un-flag) your response
This comment is hidden because it contains spoiler information about the solution
If anybody wants to run the code in browser and use the debugger, here's a Chrome Extension to help you
https://github.com/bojan88/Codewars-JavaScript-debugger
They are arrays, but with extra methods which are ignored when assertSimilar arguments are arrays.
When you pass an object containing magicArray to assertSimilar, those extra methods from fn object are not ignored
Here is the fail message:
I can't get passed "getSplit" test. My
split
object looks like this:{pass: magicArray, fail: magicArray}
Am I missing something or the tests have issues?
I can see that when instance of magicArray is compared with instance of Array, the test suite is creating strings which contain only array elements and then comparing those strings.
When comparing objects with magicArrays, it's creating a string out of object and not checking if properties are arrays.
I'm getting the same error on some tests.