myFunction({ param1 : 70, param2 : 175});
function myFunction({param1, param2}={}){
// ...function body...
}
// Or with defaults,
function myFunc({
name = 'Default user',
age = 'N/A'
}={}) {
// ...function body...
}
function foo({first, second, third} = {}) {
console.log(first, second, third)
}
foo({
first: 1,
second: 2,
third: 3
})