5 lines
78 B
JavaScript
5 lines
78 B
JavaScript
function f([x] = [1], {y} = {y: 2}) {
|
|
return x + y;
|
|
}
|
|
|
|
assert.equal(3, f()); |