I have a function, eg.:
function calculateSize(first, second, third) { ... }
and I want to pass to it an object which looks like this:
const values = {
first: {
width: 100,
height: 100
},
second: {
width: 100,
height: 100
},
third: {
width: 100,
height: 100
}
};
How can I do it in a most succinct way?