From aac3c4d5c767dfc97bb7c9e5ed3aa712b4f96796 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 2 Jul 2014 18:20:36 -0700 Subject: [PATCH] Minor style nits. --- lodash.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lodash.js b/lodash.js index b44597bb4..9a96f4432 100644 --- a/lodash.js +++ b/lodash.js @@ -1234,7 +1234,9 @@ * @returns {*} Returns the value to assign to the destination object. */ function assignDefaults(objectValue, sourceValue) { - return typeof objectValue == 'undefined' ? sourceValue : objectValue; + return typeof objectValue == 'undefined' + ? sourceValue + : objectValue; } /** @@ -1253,7 +1255,7 @@ function assignOwnDefaults(objectValue, sourceValue, key, object) { return (typeof objectValue == 'undefined' || !hasOwnProperty.call(object, key)) ? sourceValue - : objectValue + : objectValue; } /** @@ -1273,7 +1275,9 @@ while (++index < length) { var key = props[index]; - object[key] = customizer ? customizer(object[key], source[key], key, object, source) : source[key]; + object[key] = customizer + ? customizer(object[key], source[key], key, object, source) + : source[key]; } return object; }