mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Minor style nits.
This commit is contained in:
10
lodash.js
10
lodash.js
@@ -1234,7 +1234,9 @@
|
|||||||
* @returns {*} Returns the value to assign to the destination object.
|
* @returns {*} Returns the value to assign to the destination object.
|
||||||
*/
|
*/
|
||||||
function assignDefaults(objectValue, sourceValue) {
|
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) {
|
function assignOwnDefaults(objectValue, sourceValue, key, object) {
|
||||||
return (typeof objectValue == 'undefined' || !hasOwnProperty.call(object, key))
|
return (typeof objectValue == 'undefined' || !hasOwnProperty.call(object, key))
|
||||||
? sourceValue
|
? sourceValue
|
||||||
: objectValue
|
: objectValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1273,7 +1275,9 @@
|
|||||||
|
|
||||||
while (++index < length) {
|
while (++index < length) {
|
||||||
var key = props[index];
|
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;
|
return object;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user