I'm having a strange issue with mapping an array to a new object type in javascript. I have a getter function like this:
get azOptions() {
return this.arr?.map(az => {
test:"asdf";
});
}
...
console.log(this.azOptions);
The array contains 2 elements when I call the getter, but it maps to an array of 2 undefined elements as can be seen in this browser output: