2018-03-29 22:12:23 +02:00
|
|
|
const [...a,] = [];
|
|
|
|
const {...b,} = {};
|
|
|
|
let c, d;
|
|
|
|
([...c,] = []);
|
|
|
|
({...d,} = {});
|
2018-06-04 23:47:07 +02:00
|
|
|
|
|
|
|
// Allowed for non-rest elements
|
|
|
|
const [e,] = <any>[];
|
|
|
|
const {f,} = <any>{};
|
|
|
|
let g, h;
|
|
|
|
([g,] = <any>[]);
|
|
|
|
({h,} = <any>{});
|