mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* fix * update tests * review * fix * Update packages/babel-plugin-transform-for-of/src/index.ts Co-authored-by: Nicolò Ribaudo <[email protected]> * review * review --------- Co-authored-by: Nicolò Ribaudo <[email protected]>
11 lines
146 B
JavaScript
11 lines
146 B
JavaScript
function x(e){
|
|
const r = [];
|
|
for (const s of e) {
|
|
const e = s;
|
|
r.push(e);
|
|
}
|
|
return r;
|
|
}
|
|
|
|
expect(x([1, 2, 3])).toEqual([1, 2, 3]);
|