Kirill Dmitrenko
Member since Apr 28, 2014
- Profile: /members/11859-kirill-dmitrenko.htm
- Comments: 2
Recent Blog Comments By Kirill Dmitrenko
-
Coercing Non-Truthy Values In JavaScript
Posted on Apr 29, 2014 at 7:09 AM
@Ben, My pleasure. I personally try to avoid sophisticated type casts in my code. As John Carmack says, if something can be done wrong, it eventually will be. And, I think, type coercing is such situation.... read more »
-
Coercing Non-Truthy Values In JavaScript
Posted on Apr 28, 2014 at 4:23 PM
> After some Googling, I found some resources that seemed to indicate that > when JavaScript compares an Object to a non-Object, it does so by first > converting the Object into a "primitive" using this kind of approach: > object.toString().valueOf() No, all relative expressio... read more »