for each arrow function es6 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);
});