value || target[key] would be more effective, otherwise value could be undefined and will override previous values.