diff --git a/src/index.ts b/src/index.ts index 9772e61..2911279 100644 --- a/src/index.ts +++ b/src/index.ts @@ -155,7 +155,7 @@ export default class Config { for (const key of Object.keys(json)) { const value = json[key]; - switch (value) { + switch (true) { case Array.isArray(value): this.set(key, [...(this.array(key) ?? []), ...value]); break;