From 3c51c3be85bb0d1bdb87ea0d6632f1c256912f27 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 6 Oct 2019 21:37:45 +0200 Subject: build: Add some required modules for node --- node_modules/lodash/sortedUniq.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 node_modules/lodash/sortedUniq.js (limited to 'node_modules/lodash/sortedUniq.js') diff --git a/node_modules/lodash/sortedUniq.js b/node_modules/lodash/sortedUniq.js new file mode 100644 index 0000000..866db31 --- /dev/null +++ b/node_modules/lodash/sortedUniq.js @@ -0,0 +1,24 @@ +var baseSortedUniq = require('./_baseSortedUniq'); + +/** + * This method is like `_.uniq` except that it's designed and optimized + * for sorted arrays. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Array + * @param {Array} array The array to inspect. + * @returns {Array} Returns the new duplicate free array. + * @example + * + * _.sortedUniq([1, 1, 2]); + * // => [1, 2] + */ +function sortedUniq(array) { + return (array && array.length) + ? baseSortedUniq(array) + : []; +} + +module.exports = sortedUniq; -- cgit v1.2.3