X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Funcss%2Fnode_modules%2Fform-data%2Fnode_modules%2Flodash%2FsortedUniq.js;fp=node_modules%2Funcss%2Fnode_modules%2Fform-data%2Fnode_modules%2Flodash%2FsortedUniq.js;h=866db311e4e96831fbbffd89ed99bffa4e412827;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/uncss/node_modules/form-data/node_modules/lodash/sortedUniq.js b/node_modules/uncss/node_modules/form-data/node_modules/lodash/sortedUniq.js new file mode 100644 index 000000000..866db311e --- /dev/null +++ b/node_modules/uncss/node_modules/form-data/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;