- Use 2 space indents without tab chars. You may need to change the settings on your editor.
For vi or vim, update .vimrc with the following:
Use the correct for-loops.
When looping through an object or a hash map, you have to use
When looping through an array (i.e. something with a length and only numeric keys), you have to use
Failure to do so will cause trouble when using JS frameworks that override the Array object.