parcourir element liste ts code example
Example 1: foreach javascript
var items = ["item1", "item2", "item3"]
var copie = [];
items.forEach(function(item){
copie.push(item);
});
Example 2: js fetch all elements of an array
let elements = ['A', 'B', 'C', 'D', 'E'];
elements.forEach(letter => console.log(letter.toLowerCase())); //a, b, c, d, e