how to loop through all arguments in a js arrow function 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);
});