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.
the sign of the zeroes should not matter, but this is a known issue with the
deepEqual()
matcher from thechai
JavaScript assertions library that Codewars uses. it uses theObject.is()
function to compare objects, andObject.is(-0, +0) === false
. it seems to be possible to reconfigure this in more recent (5.0+
) versions of chai, but Codewars uses4.3.3
for now.check this out:
JavaScript's object-to-string conversion is messy ;-)
Please use spoiler flag next time, your post was visible in the homepage.