Change Value to Reference

refactorgram

let customer = new Customer(customerData);

image/svg+xml

let customer = customerRepository.get(customerData.id);

inverse of Change Reference to Value