Add iteration index to each function

It is useful, in many cases, to have the index of the current iteration.

overcome this doing this manually but again this is very useful.

ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach

Thanks!