diff options
author | XhmikosR <xhmikosr@gmail.com> | 2022-11-13 10:19:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-13 10:19:11 +0300 |
commit | 2fde88c20071f1e766703f78a25ebc431da9e1d8 (patch) | |
tree | 93d22528446f6f0f25aafbe66da421900ad7d9ae /js/src/util/config.js | |
parent | 0446e22b5aa556701f32015e9678f4ae822d1386 (diff) |
Use `Object.entries` in more places (#37482)
Diffstat (limited to 'js/src/util/config.js')
-rw-r--r-- | js/src/util/config.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/src/util/config.js b/js/src/util/config.js index f2d24b4bac..9417ab8f8c 100644 --- a/js/src/util/config.js +++ b/js/src/util/config.js @@ -49,8 +49,7 @@ class Config { } _typeCheckConfig(config, configTypes = this.constructor.DefaultType) { - for (const property of Object.keys(configTypes)) { - const expectedTypes = configTypes[property] + for (const [property, expectedTypes] of Object.entries(configTypes)) { const value = config[property] const valueType = isElement(value) ? 'element' : toType(value) |