Retired

All Types of Emptiness (retired)

Description
Loading description...
Fundamentals
Data Types
Arrays
  • Please sign in or sign up to leave a comment.
  • JohanWiltink Avatar

    For even more undifferent emptiness, read up on positive and negative zero.

    But please don't make a kata out of it. :P

  • JohanWiltink Avatar

    You are expecting unstandard behaviour for JS. Even if you're going to specify it, it's not a good idea. NaN should not be equal to NaN, and holes in sparse arrays do not have "variables" ( ie, values ) to change.

    • CYin Avatar

      hmm ok, I won't publish this kata then.

    • JohanWiltink Avatar

      Well, you can, but I would stay closer to standard JS behaviour. Do not fill holes in sparse arrays ( or explicitly specify that behaviour - it does make for interesting programming ), do not require NaN === NaN ( really, just don't go there ), but otherwise replace existing values with null where applicable, and you won't hear me.

      In light of below issue, it might be a good idea to specify all that, if only with the text "according to standard JS behaviour", though.

      And with random tests. ( Did you read the documentation on creating your first kata? It still applies to your second one. :)

      Resolved by retirement. Closing.

      Issue marked resolved by JohanWiltink 6 years ago
  • Blind4Basics Avatar

    Hi,

    I fear the description is way less than sufficient... :o

    And you need random tests.

    cheers