*Update dist

This commit is contained in:
Derrick Hammer 2022-08-14 09:27:02 -04:00
parent 237e5796a8
commit 12db0806a8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

2
dist/util.js vendored
View File

@ -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];