1 define(['./forOwn', '../lang/isPlainObject'], function (forOwn, isPlainObject) {
4 * Deeply copy missing properties in the target from the defaults.
6 function deepFillIn(target, defaults){
14 // jshint loopfunc: true
15 forOwn(obj, function(newValue, key) {
16 var curValue = target[key];
17 if (curValue == null) {
18 target[key] = newValue;
19 } else if (isPlainObject(curValue) &&
20 isPlainObject(newValue)) {
21 deepFillIn(curValue, newValue);