I have a string array that contains values I want to keep and use to create a new array called Record.
For each value in the userValue array.
For example:
userValue: string[] = ["1111","2222","3333","4444"];
selectedOptions: Record<string, boolean> = {
//how can I add values from the userValue array here?
1111: true, //hardcoded
2222: true, //hardcoded
3333: true, //hardcoded
4444: true //hardcoded
};