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

@@ -16,7 +16,9 @@
* // => undefined
*/
function head(array) {
return (array != null && array.length) ? array[0] : undefined
return (array != null && array.length)
? array[0]
: undefined
}
export default head