Profile
Achievement
luizlopes's Recent JavaScript Snippets
- 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
442
posted 12 years ago by luizlopes
an operator that implements true prototypal Object inheritance in JavaScript
0
574
posted 12 years ago by luizlopes
JSLint requires the body of every `for in` statement should be wrapped in an `if` statement
0
677
posted 12 years ago by luizlopes