Adjust styling of array checks in head, uniq, uniqBy and uniqWith to other methods.

This commit is contained in:
Michał Lipiński
2017-03-16 22:48:46 +01:00
parent 929a996987
commit 76ab9cd539
4 changed files with 12 additions and 4 deletions

View File

@@ -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