Permalink
Cannot retrieve contributors at this time
28 lines (26 sloc)
811 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/lodash/xor.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arrayFilter = require('./_arrayFilter'), | |
baseRest = require('./_baseRest'), | |
baseXor = require('./_baseXor'), | |
isArrayLikeObject = require('./isArrayLikeObject'); | |
/** | |
* Creates an array of unique values that is the | |
* [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference) | |
* of the given arrays. The order of result values is determined by the order | |
* they occur in the arrays. | |
* | |
* @static | |
* @memberOf _ | |
* @since 2.4.0 | |
* @category Array | |
* @param {...Array} [arrays] The arrays to inspect. | |
* @returns {Array} Returns the new array of filtered values. | |
* @see _.difference, _.without | |
* @example | |
* | |
* _.xor([2, 1], [2, 3]); | |
* // => [1, 3] | |
*/ | |
var xor = baseRest(function(arrays) { | |
return baseXor(arrayFilter(arrays, isArrayLikeObject)); | |
}); | |
module.exports = xor; |