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

utils/difference-with
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Finds the 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/difference-with in your project
npm i @bit/bit.ramda.utils.difference-with
Copied

differenceWith (pred:Function, list1:Array, list2:Array) : Array

Finds the set (i.e. no duplicates) of all elements in the first list not contained in the second list. Duplication is determined according to the value returned by applying the supplied predicate to two list elements.

Example

var cmp = (x, y) => x.a === y.a;
     var l1 = [{a: 1}, {a: 2}, {a: 3}];
     var l2 = [{a: 3}, {a: 4}];
     R.differenceWith(cmp, l1, l2); //=> [{a: 1}, {a: 2}]

Arguments

pred: Function

A predicate used to test whether two items are equal.

list1: Array

The first list.

list2: Array

The second list.

Returns

Array

The elements in `list1` that are not in `list2`.