es6 foreach arrow return code example
Example: foreach loop js arrow functons
someValues.forEach((element, index) => {
console.log(`Current index: ${index}`);
console.log(element);
});
someValues.forEach((element, index) => {
console.log(`Current index: ${index}`);
console.log(element);
});