fix each(arr, fn) declaration

fix each declaration, as doThen, doLeave and doOtherwise calling it as each(arr, fn)