Enterprise JavaScript

Random

Making really sure something exists before you use it

if (foo && foo != null && foo.length && foo.length > 0) {
 console.log('we have a winnar!');
}
Fork me on GitHub