Share your code. Components are building blocks, you are the architect.

utils/intersection
v1.1.0
1.1.0
1.0.0
Combines two lists into a set (i.e

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/intersection in your project
npm i @bit/bit.ramda.utils.intersection
Copied

intersection (list1:Array, list2:Array) : Array

Combines two lists into a set (i.e. no duplicates) composed of those elements common to both lists.

Example

R.intersection([1,2,3,4], [7,6,5,4,3]); //=> [4, 3]

Arguments

list1: Array

The first list.

list2: Array

The second list.

Returns

Array

The list of elements found in both `list1` and `list2`.