mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
Bump to v4.14.0.
This commit is contained in:
@@ -11,7 +11,7 @@ import baseUniq from './_baseUniq.js';
|
||||
* @since 4.0.0
|
||||
* @category Array
|
||||
* @param {Array} array The array to inspect.
|
||||
* @param {Array|Function|Object|string} [iteratee=_.identity]
|
||||
* @param {Function} [iteratee=_.identity]
|
||||
* The iteratee invoked per element.
|
||||
* @returns {Array} Returns the new duplicate free array.
|
||||
* @example
|
||||
@@ -25,7 +25,7 @@ import baseUniq from './_baseUniq.js';
|
||||
*/
|
||||
function uniqBy(array, iteratee) {
|
||||
return (array && array.length)
|
||||
? baseUniq(array, baseIteratee(iteratee))
|
||||
? baseUniq(array, baseIteratee(iteratee, 2))
|
||||
: [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user