0

I have a contact model, on change I set the state of the contact object, how can I make the below function more readable?
The address field is different because it's an object: ['address', 'city', 'state', 'zip']
const onFieldChange = (
key,
index = 0,
isMulti = false,
isAddress...