Is the following definition of defaults bad practice?
var defaults = {
name:'',
surname:'',
address:{
part1:'',
part2:'',
postCode:''
}
};
If only part1 in the address object is defined by the plugin initiator the rest of address will be undefined.
What would be the best way to handle this? Or should I not use complex objects as options at all?