datilografado para e cada
let num = [7, 8, 9];
num.forEach(function (value) {
console.log(value);
});
Rich Ratel
let num = [7, 8, 9];
num.forEach(function (value) {
console.log(value);
});
example() {
for (let item of this.items) {
if (true) {
return;
}
}
// Do stuff in case forEach has not returned
}
for (let item of this.items) {
if (true) {
return;
}
}