[DOC release] Fix doc bug where forEach parameter order is wrong

Seems the code was updated to match ES6 but not the docs.