Refactor loops to handle edge cases in a consistent manner.
Refactor loops to handle edge cases in a consistent manner.

datachand/js2coffee,simudream/js2coffee,js2coffee/js2coffee,marnen/js2coffee,vinodpanicker/js2coffee,kustomzone/js2coffee,salipro4ever/js2coffee