mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Update underscore build _.defaults and _.result to match Underscore v1.5.0.
Former-commit-id: 12f1ed2217b6d9c845a1be0acd7b8337be94f63f
This commit is contained in:
4
build.js
4
build.js
@@ -3092,7 +3092,7 @@
|
||||
' var iterable = arguments[argsIndex];',
|
||||
' if (iterable) {',
|
||||
' for (var key in iterable) {',
|
||||
' if (object[key] == null) {',
|
||||
" if (typeof object[key] == 'undefined') {",
|
||||
' object[key] = iterable[key];',
|
||||
' }',
|
||||
' }',
|
||||
@@ -3386,7 +3386,7 @@
|
||||
if (!isLodashFunc('result')) {
|
||||
source = replaceFunction(source, 'result', [
|
||||
'function result(object, property) {',
|
||||
' var value = object ? object[property] : null;',
|
||||
' var value = object ? object[property] : undefined;',
|
||||
' return isFunction(value) ? object[property]() : value;',
|
||||
'}'
|
||||
].join('\n'));
|
||||
|
||||
Reference in New Issue
Block a user