Skip to content

Commit

Permalink
export clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkolson committed Dec 7, 2020
1 parent cc1e6cf commit 5e60aa2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const calcDiffies = (diffies) => (seen) => (inserted) => (elIdx, el) => {
// calculate the symmetric difference of two lists of objects by comparing
// specific property values.
// Or in symbol form: (list1 U list2) - (list1 n list2)
module.exports = symDiffByProps = (props, list1, list2) => {
const symDiffByProps = (props, list1, list2) => {
const symDiffies = [];
const seen = {};
const inserted = {};
Expand Down Expand Up @@ -220,4 +220,6 @@ module.exports = symDiffByProps = (props, list1, list2) => {
// gets replaced in the symmetric differences array with null, and we filter them out
// in the final result
return symDiffies.filter(d => !!d);
};
};

module.exports = symDiffByProps;

0 comments on commit 5e60aa2

Please sign in to comment.