I've already used the new syntax for a while, and now I'd like to know more about it:
function func({ foo, bar }) {
console.log(foo, bar);
}
func({ foo: "my-foo", bar: "my-bar" });
The part of syntax that I'm asking about is the way of declaring the arguments in curly braces.