Überprüfen Sie, ob jedes Element eines Arrays einen Test bestehen
let numbers = [1, 3, 5];
let result = numbers.every( e => e > 0);
console.log(result);
Code language: JavaScript (javascript)
let numbers = [1, 3, 5];
let result = numbers.every( e => e > 0);
console.log(result);
Code language: JavaScript (javascript)