pls explain
Jesus Christ Bubbler...
How about mine? ;-)
Actually, this is the biggest gripe I have with JavaScript. "".match()'s return type is inconsistent, and [] would have been perfectly fine instead of null. Most places where you see people using "".match(), you see them ||'ing the result with [].
"".match()
[]
null
||
There are even simpler katas around.
I think my solution is very clever too ;-)
Loading collection data...
pls explain
Jesus Christ Bubbler...
How about mine? ;-)
Actually, this is the biggest gripe I have with JavaScript.
"".match()
's return type is inconsistent, and[]
would have been perfectly fine instead ofnull
. Most places where you see people using"".match()
, you see them||
'ing the result with[]
.There are even simpler katas around.
I think my solution is very clever too ;-)