Skip to content

Commit

Permalink
chore(utilHelpers): fix code quality (#2856)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKanera authored Jan 14, 2025
1 parent ba52ca3 commit 7346abe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/joint-core/src/util/utilHelpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ const baseMerge = (object, source, srcIndex, customizer, stack) => {

assignMergeValue(object, key, newValue);
}
}, keysIn);
});
};

const baseMergeDeep = (object, source, key, srcIndex, mergeFunc, customizer, stack) => {
Expand Down Expand Up @@ -2236,8 +2236,8 @@ export function debounce(func, wait, opt) {
export const groupBy = (collection, iteratee) => {
iteratee = getIteratee(iteratee, 2);

return reduce(collection, (result, value, key) => {
key = iteratee(value);
return reduce(collection, (result, value) => {
const key = iteratee(value);
if (hasOwnProperty.call(result, key)) {
result[key].push(value);
} else {
Expand Down

0 comments on commit 7346abe

Please sign in to comment.