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.
Your solution seems correct, but did not handle the edge case below.
This comment is hidden because it contains spoiler information about the solution
This kata asks you to solve sudoku that require guessing and to throw errors if there's more than one solution.
Yes
because I don't know JS destructuration well enough. It does something, but it's not necessary, actually
Yes I do.
All other comparisons do not just check for
undefined
.==
Would give a false positive onnull
.if ( ! a )
Would give false positives onnull
,""
,false
and0
.Actually, I might use
Object.is
, but I find===
easier to write.I sincerely hope you're not implying I should be using
==
.==
Should be taken out and shot, hung, quartered and then really hurt. There are exceedingly few reasons to use==
instead of===
, and not having uncoercing>, >=, <, <=
, like===
and unlike==
, is the single worst design decision in JavaScript. I like JavaScript, but I wish it were strongly and statically typed ( and that is one of the reasons I like Haskell ).This comment is hidden because it contains spoiler information about the solution
Not an issue, and that's for you to discover. Please, don't post solutions like that.
JavaScript is a pathway to many abilities some consider to be... unnatural.