Skip to content

Commit fb06d0b

Browse files
Switch all 'for..of' loops to assume they iterating only arrays (#2099)
1 parent 493a9b6 commit fb06d0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.babelrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
['@babel/plugin-transform-classes', { loose: true }],
77
['@babel/plugin-transform-destructuring', { loose: true }],
88
['@babel/plugin-transform-spread', { loose: true }],
9+
['@babel/plugin-transform-for-of', { assumeArray: true }],
910
],
1011
env: {
1112
cjs: {

0 commit comments

Comments
 (0)