From 12db0806a8895a5dff5cd1ff48ec86e807934b75 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 14 Aug 2022 09:27:02 -0400 Subject: [PATCH] *Update dist --- dist/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/util.js b/dist/util.js index fdeabb1..9cefbaa 100644 --- a/dist/util.js +++ b/dist/util.js @@ -16,7 +16,7 @@ export function flatten(target, opts = {}) { function step(object, prev, currentDepth) { currentDepth = currentDepth || 1; if (!Array.isArray(object)) { - object = Object.keys(object); + object = Object.keys(object ?? {}); } object.forEach(function (key) { const value = object[key];