mirror of
https://github.com/hanzoai/swc.git
synced 2026-10-30 19:42:53 +00:00
16 lines
363 B
JavaScript
16 lines
363 B
JavaScript
[...a, b] = [...spread];
|
|
const [...a, b] = [...spread];
|
|
([...a, b]) => {};
|
|
({ ...a, b }) => {};
|
|
(...a, b) => {};
|
|
class c {
|
|
constructor(...a, b) {}
|
|
fn(...a, b) {}
|
|
}
|
|
function fn([...a, b]) {}
|
|
function fn({ ...a, b }) {}
|
|
function fn(...a, b) {}
|
|
({ ...a, b } = { ...spread });
|
|
const { ...a, b } = { ...spread };
|
|
for ([...a,b,] of a) {}
|
|
for ({...a,b,} of b) {} |