From c416218d88eeed410ea3ba6b65c2fb4748f0fb11 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 21 Sep 2022 17:36:30 -0400 Subject: [PATCH] *Switch case needs to be on true not the value --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;