July 27, 2011
Handy JavaScript Shorthand Techniques
Here some great shorthand techniques that are valuable for any Javascript based developer. These will save both time and space - keeping your code clean and whitespace to a minimum. 1. Shorthand - Null, Undefined, "" Checks A common scenerio for developers is to check if the variable you are referencing is null or undefined. Longhand: if (variable1 !== null…