target[key] is only overridden if the current value is undefined.

target[key] is only overridden if the current value is undefined. In the case of defaults they will never be overridden as they are never undefined.