The primary object to try to retrieve the value from. If not found in here, altSource is checked.
The name of the property to retrieve from the object. If a property is nested, the names of its preceding properties should be separated by a dot (.) - banner.hideBanner would return the value of the hideBanner property from the object stored in the banner property of the source object.
The value to return if the key isn't found in the source object.
OptionalaltSource: objectAn alternative object to retrieve the value from. If the property exists in source then altSource will not be used.
Retrieves a value from an object, or an alternative object, falling to a back-up default value if not found.
The key is a string, which can be split based on the use of the period character.
For example:
In the code above,
liveswill be 3 because it's defined at the top level ofsource. Thewidthvalue will be 1024 because it can be found inside therender.screenobject. Theheightvalue will be 600, the default value, because it is missing from therender.screenobject.