It allows you to pass function arguments as an object. You can set default values for the arguments (see "size" argument) and it also allows for omitting arguments when calling a function rather than using null.
#javascript#object#es6
functionbuildElement({color,shape,size=20,callback}){// Do something...}varel1=buildElement({color,shape,size:10,callback:function(){}});varel2=buildElement({color,size});