From 291803c31f829fe0d32bb3207bc11def95a7408c Mon Sep 17 00:00:00 2001 From: Nevena Bojovic Date: Tue, 1 Mar 2022 20:05:50 +0100 Subject: Urađena test aplikacija. Povezan front i back. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../testAppNevena/Front/node_modules/lodash/xor.js | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 sandbox/testAppNevena/Front/node_modules/lodash/xor.js (limited to 'sandbox/testAppNevena/Front/node_modules/lodash/xor.js') diff --git a/sandbox/testAppNevena/Front/node_modules/lodash/xor.js b/sandbox/testAppNevena/Front/node_modules/lodash/xor.js new file mode 100644 index 00000000..d4d28604 --- /dev/null +++ b/sandbox/testAppNevena/Front/node_modules/lodash/xor.js @@ -0,0 +1,28 @@ +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; -- cgit v1.2.3