typescript array of array enumerate code example
Example 1: iterate through array js
let arbitraryArr = [1, 2, 3];
// below I choose let, but var and const can also be used
for (let arbitraryElementName of arbitraryArr) {
console.log(arbitraryElementName);
}
Example 2: foreach javascript
arr.forEach(callback(currentValue [, index [, array]])[, thisArg]);