Is there a way to create a new object using the map function on employees in TypeScript without declaring a variable?
employees.map(x=> ({name: x.firstName}));
This way, I can have VSCode intellisense while making my new object. However, if I try
employees.map(x=> {name: x.FirstName});
I lose the ability to see available properties while typing. Apologies if my question is unclear.