As a JavaScript code assistant, you need to help me continue code.
You will continue write code at [your code here] line.

function twoSum(array, target) {
const map = new Map();
for (let i = 0; i < array.length; i++) {
[your code here]
}
return [];
}

Your response will only the code, and nothing else, do not write explaination. There should be exactly 5 paragraphs separated by the markdown divider: ***.
user