Sha256: 8f8deb349ef4d8404e576da4b8fafe24962a08717aa6cb53352406b612e2aeb4

Contents?: true

Size: 811 Bytes

Versions: 274

Compression:

Stored size: 811 Bytes

Contents

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;

Version data entries

274 entries across 272 versions & 30 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/lodash/xor.js
immosquare-cleaner-0.1.59 node_modules/lodash/xor.js
immosquare-cleaner-0.1.58 node_modules/lodash/xor.js
immosquare-cleaner-0.1.57 node_modules/lodash/xor.js
immosquare-cleaner-0.1.56 node_modules/lodash/xor.js
immosquare-cleaner-0.1.55 node_modules/lodash/xor.js
immosquare-cleaner-0.1.54 node_modules/lodash/xor.js
immosquare-cleaner-0.1.53 node_modules/lodash/xor.js
immosquare-cleaner-0.1.52 node_modules/lodash/xor.js
trusty-cms-6.3.1 node_modules/lodash/xor.js
immosquare-cleaner-0.1.51 node_modules/lodash/xor.js
boring_generators-0.15.0 tmp/templates/app_template/node_modules/lodash/xor.js
clapton-0.0.26 lib/clapton/javascripts/node_modules/lodash/xor.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/lodash/xor.js
immosquare-cleaner-0.1.50 node_modules/lodash/xor.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/lodash/xor.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/lodash/xor.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/lodash/xor.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/lodash/xor.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/lodash/xor.js