Skip to content

Commit

Permalink
fix: drop keys that have no enumerable properties
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Jun 13, 2022
1 parent 172f29a commit 3363570
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/deepmerge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,9 @@ function defaultMergeRecords<
}
}

// assert(propValues.length > 0);
if (propValues.length === 0) {
continue;
}

const updatedMeta = utils.metaDataUpdater(meta, {
key,
Expand Down

0 comments on commit 3363570

Please sign in to comment.