mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Adjust styling of array checks in head, uniq, uniqBy and uniqWith to other methods.
This commit is contained in:
@@ -19,7 +19,9 @@ import baseUniq from './.internal/baseUniq.js'
|
||||
* // => [2.1, 1.2]
|
||||
*/
|
||||
function uniqBy(array, iteratee) {
|
||||
return (array != null && array.length) ? baseUniq(array, iteratee) : []
|
||||
return (array != null && array.length)
|
||||
? baseUniq(array, iteratee)
|
||||
: []
|
||||
}
|
||||
|
||||
export default uniqBy
|
||||
|
||||
Reference in New Issue
Block a user