const includeSalary = true; const employee = { id: 1, name: 'Ofir', ...(includeSalary && { salary: 1000 }), }