Skip to content

Commit d669eed

Browse files
authored
fix: remove needless entries for map (#15213)
1 parent b3cebcf commit d669eed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/jest-matcher-utils/src/deepCyclicCopyReplaceable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function deepCyclicCopyMap<T>(
142142

143143
cycles.set(map, newMap);
144144

145-
for (const [key, value] of map.entries()) {
145+
for (const [key, value] of map) {
146146
newMap.set(key, deepCyclicCopyReplaceable(value, cycles));
147147
}
148148

0 commit comments

Comments
 (0)