1// Parenthesize the body of a function to return an object literal expression:
2params => ({foo: bar})
3
4// Rest parameters and default parameters are supported
5(param1, param2, ...rest) => { statements }
6(param1 = defaultValue1, param2, …, paramN = defaultValueN) => {
7statements }
8
9// Destructuring within the parameter list is also supported
10var f = ([a, b] = [1, 2], {x: c} = {x: a + b}) => a + b + c;
11f(); // 6
12