Junior — Middle+
Creating a polyfill for the Array.some() method
livecode
Task condition
Implement a polyfill that reproduces the behavior of the built-in Array.some() method.
// [2, 5, 8, 1, 4].some((el) => el > 10); -------> false
// [12, 5, 8, 1, 4].some((el) => el > 10); -------> true
const some = () => {
}