Socket
Socket
Sign inDemoInstall

lodash.uniq

Package Overview
Dependencies
14
Maintainers
5
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.0 to 3.2.0

30

index.js
/**
* lodash 3.1.0 (Custom Build) <https://lodash.com/>
* lodash 3.2.0 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors

@@ -11,5 +11,5 @@ * Available under MIT license <https://lodash.com/license>

baseUniq = require('lodash._baseuniq'),
getNative = require('lodash._getnative'),
isIterateeCall = require('lodash._isiterateecall'),
isArray = require('lodash.isarray'),
isNative = require('lodash.isnative');
isArray = require('lodash.isarray');

@@ -45,8 +45,10 @@ /**

/**
* Creates a duplicate-value-free version of an array using `SameValueZero`
* for equality comparisons. Providing `true` for `isSorted` performs a faster
* search algorithm for sorted arrays. If an iteratee function is provided it
* is invoked for each value in the array to generate the criterion by which
* uniqueness is computed. The `iteratee` is bound to `thisArg` and invoked
* with three arguments: (value, index, array).
* Creates a duplicate-free version of an array, using
* [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
* for equality comparisons, in which only the first occurence of each element
* is kept. Providing `true` for `isSorted` performs a faster search algorithm
* for sorted arrays. If an iteratee function is provided it is invoked for
* each element in the array to generate the criterion by which uniqueness
* is computed. The `iteratee` is bound to `thisArg` and invoked with three
* arguments: (value, index, array).
*

@@ -64,6 +66,2 @@ * If a property name is provided for `iteratee` the created `_.property`

*
* **Note:** [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
* comparisons are like strict equality comparisons, e.g. `===`, except that
* `NaN` matches `NaN`.
*
* @static

@@ -80,4 +78,4 @@ * @memberOf _

*
* _.uniq([1, 2, 1]);
* // => [1, 2]
* _.uniq([2, 1, 2]);
* // => [2, 1]
*

@@ -84,0 +82,0 @@ * // using `isSorted`

{
"name": "lodash.uniq",
"version": "3.1.0",
"version": "3.2.0",
"description": "The modern build of lodash’s `_.uniq` as a module.",

@@ -22,6 +22,6 @@ "homepage": "https://lodash.com/",

"lodash._baseuniq": "^3.0.0",
"lodash._getnative": "^3.0.0",
"lodash._isiterateecall": "^3.0.0",
"lodash.isarray": "^3.0.0",
"lodash.isnative": "^3.0.0"
"lodash.isarray": "^3.0.0"
}
}

@@ -1,2 +0,2 @@

# lodash.uniq v3.1.0
# lodash.uniq v3.2.0

@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.uniq` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.

See the [documentation](https://lodash.com/docs#uniq) or [package source](https://github.com/lodash/lodash/blob/3.1.0-npm-packages/lodash.uniq) for more details.
See the [documentation](https://lodash.com/docs#uniq) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.uniq) for more details.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc