mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-02 18:11:04 +08:00
DISABLE_THIRD_PARTY_CHECK=new npm module causes package-lock change We can get rid of a custom script and use ESLint for these rules. Additionally this means editors will highlight the issue in the editor. Change-Id: I552b52e7f07b4e7430b3f685dbc3b5fad36ffff2 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2052167 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
26 lines
908 B
JavaScript
26 lines
908 B
JavaScript
import _curry2 from './internal/_curry2.js';
|
|
import concat from './concat.js';
|
|
import difference from './difference.js';
|
|
|
|
/**
|
|
* Finds the set (i.e. no duplicates) of all elements contained in the first or
|
|
* second list, but not both.
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.19.0
|
|
* @category Relation
|
|
* @sig [*] -> [*] -> [*]
|
|
* @param {Array} list1 The first list.
|
|
* @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 = /*#__PURE__*/_curry2(function symmetricDifference(list1, list2) {
|
|
return concat(difference(list1, list2), difference(list2, list1));
|
|
});
|
|
export default symmetricDifference; |