es6 foreach arrow 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);
});