Skip to content

Commit

Permalink
chore(differenceWith): updated code example for difference with to be…
Browse files Browse the repository at this point in the history
…tter illuminate the behaviour of the function through the documentation (#2893)
  • Loading branch information
BobbieBarker committed Jan 23, 2022
1 parent fd97ee3 commit 4fb5c61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/differenceWith.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ import _curry3 from './internal/_curry3.js';
* const l1 = [{a: 1}, {a: 2}, {a: 3}];
* const l2 = [{a: 3}, {a: 4}];
* R.differenceWith(cmp, l1, l2); //=> [{a: 1}, {a: 2}]
*
* R.differenceWith(R.equals, [1, 2, 3, 3, 3], []); //=> [1, 2, 3]
* R.differenceWith(R.equals, [1, 2, 3, 3, 3], [1]); //=> [2, 3]
*/
var differenceWith = _curry3(function differenceWith(pred, first, second) {
var out = [];
Expand Down

0 comments on commit 4fb5c61

Please sign in to comment.