Back to tasks
Альфа-БанкGet help with live coding in real time with Sobes Copilot
Junior — Middle+
39
Создание полифила для метода Array.some()
Companies where asked:
Task condition
Реализуйте полифил, который воспроизводит поведение встроенного метода Array.some().
// [2, 5, 8, 1, 4].some((el) => el > 10); -------> false
// [12, 5, 8, 1, 4].some((el) => el > 10); -------> true
const some = () => {
}