I am stuck on a problem. I am using code that looks something like the following to populate a select with data but I am not getting the expected result.
let data = await response.json();
let result = data.checks.map((check) => {
return {
name: check.name,
tag: check.tags,
};
});
let hcList = document.getElementById("hclist");
Object.keys(result).map((key) => hcList.add(new Option(result[key], key)));
return result;
}
getHcList().then((result) => console.log(result));
The select populates but looks like this 
Here is what the result data looks like in console:
0: {name: "some name", tag: "some tag"}
1: {name: "some name1", tag: "some tag1"}
2: {name: "some name2", tag: "some tag2"}
I would like for just the name to populate this select. - Must use vanilla JS.