mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
68d76afe5d
**Related issue:** - Closes https://github.com/swc-project/swc/issues/6589.
15 lines
191 B
JavaScript
15 lines
191 B
JavaScript
export function func({a, b, ...rest}) {
|
|
console.log(a,b, rest)
|
|
}
|
|
|
|
const other = { unknow: "foo" }
|
|
|
|
let foo = {
|
|
...other,
|
|
bar: "baz"
|
|
};
|
|
let bar = {
|
|
bar: "baz",
|
|
...other
|
|
};
|