From 3a030e051b8aa067274fe6e318c622b225f6bde2 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 21 Sep 2022 17:28:37 -0400 Subject: [PATCH] *Update dist --- dist/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index e5f0473..f7516d5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -122,9 +122,7 @@ class Config { const value = json[key]; switch (value) { case Array.isArray(value): - let newVal = this.array(key) ?? []; - newVal.push(value); - this.set(key, newVal); + this.set(key, [...(this.array(key) ?? []), ...value]); break; default: this.set(key, value);