Arguments nommés en javascript

function foo({first, second, third} = {}) {
  console.log(first, second, third)
}

foo({
  first: 1,
  second: 2,
  third: 3 
})
Ahmad Khaefi