How to perform 'Union' in TypeScript.
// Task: Union
// Language: TypeScript
function union() {
// Implementation for Union
let result = ...; // Initialize variable
// TODO: Implement core logic here
// Step 1: Prepare data
// Step 2: Process Union
console.log("Done");
}