Javascript function Destructuring
<script>
function saveSettings({ notifications, color: { theme } }) {
console.log(theme); // output : "blue"
}
saveSettings({
notifications: {
follow: true,
alert: true,
mkt: false
},
color: {
theme: "blue"
}
});
</script>