For Each

The forEach method executes a provided function once for each array element.

let arr = ["one", "two", "three"]; 

arr.forEach(e => console.log(e)); 

// Result:
// one
// two
// three
circle-exclamation

Last updated