Given a list and a number k return whether any two numbers from the list add up to k

The task:

Given a list of numbers and a number k, return whether any two numbers from the list add up to k.

For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17.

Bonus: Can you do this in one pass?

My solution:

const addUpTo = (lst, k) => lst.some((x, i) => !isNaN(lst.find((y, j) => i !== j && y === k - x)));  const lst = [14, 10, 3, 7, 0]; const k = 14; console.log(addUpTo(lst, k));