fix each(arr, fn) declaration

fix each declaration, as doThen, doLeave and doOtherwise calling it as each(arr, fn)
Merge pull request #2 from shamil-khan/master

fix each(arr, fn) declaration