Skip to content

Commit

Permalink
change to size
Browse files Browse the repository at this point in the history
  • Loading branch information
lagden committed Dec 12, 2021
1 parent 3c1224b commit 3a62b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper.js
Expand Up @@ -9,7 +9,7 @@ export function intersection(v1, v2) {
const a = new Set(_toArray(v1))
const b = new Set(_toArray(v2))
const _intersection = new Set([...a].filter(x => b.has(x)))
return [..._intersection.values()].length > 0
return _intersection.size > 0
}

/**
Expand Down

0 comments on commit 3a62b65

Please sign in to comment.