const i = [1, 2, 3]
const j = [3, 4, 5]
i.some(j.includes)
produces Uncaught TypeError: can't convert undefined to object
Whereas doing
const k = element => j.includes(element)
i.some(k)
works as expected.
Why is that?
const i = [1, 2, 3]
const j = [3, 4, 5]
i.some(j.includes)
produces Uncaught TypeError: can't convert undefined to object
Whereas doing
const k = element => j.includes(element)
i.some(k)
works as expected.
Why is that?