const array = [1, 2, 3, 4, 12]; function isBiggerThan10(element, index, array) { return index > 3 && element > 10; } console.log(array.some(isBiggerThan10)); // expected output: true
Aventuras tecnológicas y emprendiendo
const array = [1, 2, 3, 4, 12]; function isBiggerThan10(element, index, array) { return index > 3 && element > 10; } console.log(array.some(isBiggerThan10)); // expected output: true