*Update dist
This commit is contained in:
parent
237e5796a8
commit
12db0806a8
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue