Sha256: 7703c411b9007aadde4b059ed06a62c9c0ea8c0ce2727f355a9c50070b4ebd33

Contents?: true

Size: 513 Bytes

Versions: 300

Compression:

Stored size: 513 Bytes

Contents

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;

Version data entries

300 entries across 276 versions & 32 rubygems

Version Path
disco_app-0.18.2 test/dummy/node_modules/lodash/sortedUniq.js
sumomo-0.8.15 data/sumomo/api_modules/node_modules/lodash/sortedUniq.js
trusty-cms-5.0.7 node_modules/lodash/sortedUniq.js
appmap-0.72.2 ./node_modules/lodash/sortedUniq.js
trusty-cms-5.0.6 node_modules/lodash/sortedUniq.js
appmap-0.72.1 ./node_modules/lodash/sortedUniq.js
appmap-0.72.0 ./node_modules/lodash/sortedUniq.js
trusty-cms-5.0.5 node_modules/lodash/sortedUniq.js
trusty-cms-5.0.4 node_modules/lodash/sortedUniq.js
appmap-0.71.0 ./node_modules/lodash/sortedUniq.js
disco_app-0.16.1 test/dummy/node_modules/lodash/sortedUniq.js
appmap-0.70.2 ./node_modules/lodash/sortedUniq.js
sumomo-0.8.14 data/sumomo/api_modules/node_modules/lodash/sortedUniq.js
appmap-0.70.1 ./node_modules/lodash/sortedUniq.js
appmap-0.70.0 ./node_modules/lodash/sortedUniq.js
appmap-0.69.0 ./node_modules/lodash/sortedUniq.js
sumomo-0.8.13 data/sumomo/api_modules/node_modules/lodash/sortedUniq.js
appmap-0.68.2 ./node_modules/lodash/sortedUniq.js
appmap-0.68.1 ./node_modules/lodash/sortedUniq.js
disco_app-0.15.2 test/dummy/node_modules/lodash/sortedUniq.js