aboutsummaryrefslogtreecommitdiff
path: root/js/src/util/config.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2022-11-13 09:19:11 +0200
committerGitHub <[email protected]>2022-11-13 09:19:11 +0200
commit2fde88c20071f1e766703f78a25ebc431da9e1d8 (patch)
tree93d22528446f6f0f25aafbe66da421900ad7d9ae /js/src/util/config.js
parent0446e22b5aa556701f32015e9678f4ae822d1386 (diff)
downloadbootstrap-2fde88c20071f1e766703f78a25ebc431da9e1d8.tar.xz
bootstrap-2fde88c20071f1e766703f78a25ebc431da9e1d8.zip
Use `Object.entries` in more places (#37482)
Diffstat (limited to 'js/src/util/config.js')
-rw-r--r--js/src/util/config.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/src/util/config.js b/js/src/util/config.js
index f2d24b4ba..9417ab8f8 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)