Skip to content

Commit

Permalink
Avoid for ... of syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
yungsters committed Jan 21, 2025
1 parent f5ccb95 commit e8a6f54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/__tests__/ReactChildren-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1047,11 +1047,11 @@ describe('ReactChildren', () => {

const source = <div />;
const productionElement = {};
for (const [key, value] of Object.entries(source)) {
Object.entries(source).forEach(([key, value]) => {
if (key !== '_owner' && key !== '_store') {
productionElement[key] = value;
}
}
});
Object.freeze(productionElement);

const container = document.createElement('div');
Expand Down

0 comments on commit e8a6f54

Please sign in to comment.