A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: make sure all setmanipulator tests pass
thecodrr148b88f10d30
diff --git a/packages/core/utils/set.js b/packages/core/utils/set.jsindex 5e71fb781..3bfdd87bf 100644--- a/packages/core/utils/set.js+++ b/packages/core/utils/set.js@@ -52,21 +52,21 @@ export class SetManipulator {// Return items common to both sets.// Set.intersection([1, 1, 2], [2, 2, 3]) => [2]intersection(a, b) {- return this.process(a, b, (freq) => freq === 3);+ return this.process(a, b, undefined, (freq) => freq === 3);}// Symmetric difference. Items from either set that// are not in both sets.// Set.difference([1, 1, 2], [2, 3, 3]) => [1, 3]difference(a, b) {- return this.process(a, b, (freq) => freq < 3);+ return this.process(a, b, undefined, (freq) => freq < 3);}// Relative complement. Items from 'a' which are// not also in 'b'.// Set.complement([1, 2, 2], [2, 2, 3]) => [3]complement(a, b) {- return this.process(a, b, (freq) => freq === 1);+ return this.process(a, b, undefined, (freq) => freq === 1);}// Returns true if both sets are equivalent, false otherwise.