COLLECTED BY
Organization:
Internet Archive
Focused crawls are collections of frequently-updated webcrawl data from narrow (as opposed to broad or wide) web crawls, often focused on a single domain or subdomain.
The Wayback Machine - https://web.archive.org/web/20201220222806/https://github.com/lodash/lodash/blob/master/xor.js
Permalink
Cannot retrieve contributors at this time
24 lines (22 sloc)
720 Bytes
import baseXor from './.internal/baseXor.js'
import isArrayLikeObject from './isArrayLikeObject.js'
/**
* 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.
*
* @since 2.4.0
* @category Array
* @param {...Array } [arrays] The arrays to inspect.
* @returns {Array } Returns the new array of filtered values.
* @see difference, union, unionBy, unionWith, without, xorBy, xorWith
* @example
*
* xor([2, 1], [2, 3])
* // => [1, 3]
*/
function xor ( ...arrays ) {
return baseXor ( arrays . filter ( isArrayLikeObject ) )
}
export default xor
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.