mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* refactor: iterate object rest elements only * refactor: use unshiftForXStatementBody * fix: handle object rest in array pattern * update tsconfig.json * improve typings * fix: declare uid identifiers when transforming array pattern within assignment
5 lines
102 B
JavaScript
5 lines
102 B
JavaScript
let a, result;
|
|
for (const [{...a}] of [[{ a: 0}]]) { result = a; }
|
|
|
|
expect(result).toEqual({ a: 0 });
|