How to use the symmetricDifference function from ramda
Find comprehensive JavaScript ramda.symmetricDifference code examples handpicked from public code repositorys.
8666 8667 8668 8669 8670 8671 8672 8673 8674 8675
* @param {Array} list2 The second list. * @return {Array} The elements in `list1` or `list2`, but not both. * @see R.symmetricDifferenceWith, R.difference, R.differenceWith * @example * * R.symmetricDifference([1,2,3,4], [7,6,5,4,3]); //=> [1,2,7,6,5] * R.symmetricDifference([7,6,5,4,3], [1,2,3,4]); //=> [7,6,5,1,2] */ var symmetricDifference = _curry2(function symmetricDifference(list1, list2) { return concat(difference(list1, list2), difference(list2, list1));
0
0
0
+ 35 other calls in file
ramda.clone is the most popular function in ramda (30311 examples)