Assign attribute value to attributes object if value is not undefined or null This mutates the attrs object
The attributes object to assign the value to
The key to assign the value to
Optional
The value to assign to the key
Assign attribute value to attributes object if value is not undefined or null This mutates the attrs object