Profile
Achievement
luizlopes's Recent SnippetsTagged javascript
- All /
« Prev 1 Next »
When you use the `+` operator on an Array, it converts it to a string.` [].toString()` is the same as `[].join(',')`, which gives an empty string in case the array value is `undefined` or `null`. This also works in Javascript `([undefined] + "b" ===...
0
604
posted 13 years ago by luizlopes
an operator that implements true prototypal Object inheritance in JavaScript
0
775
posted 13 years ago by luizlopes
JSLint requires the body of every `for in` statement should be wrapped in an `if` statement
0
856
posted 13 years ago by luizlopes
I took this out of an example in tutsplus, and I added a fadeIn action for aesthetic reasons.
0
1074
posted 13 years ago by luizlopes