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);