Toggles the named boolean property on the given config object in-place.
The name of the key to toggle. Must be a boolean property.
The configuration object.
the new value of the property
If the key does not exist on the object.
If the property exists but is not a boolean.
Toggles the named boolean property on the given config object in-place.