how to conditionally check &return true
from forEach
function for an example like below? Thanks!
this.results.forEach(el => {
el.forEach(el => {
if (el == 3) {
//return true here is not working
}
})
});
if (this.SlantLeft == 3 || this.SlantRight == 3) {
return true //like this
}