Customized implementation of forEach and array's forEach method.