Baidut Helpers Module
Methods
-
<static> propertyCheck(object, propertyName, defaultValue)
-
Check if object and property exist, then get property value from specified object. If such property value is null, then return default value instead.
Parameters:
Name Type Description object
Object Object to get property value from
propertyName
String Property name to get value from
defaultValue
Any Default value to return if resolved property value is null. It can be any type.
Returns:
Value of specified property from object. It can be any type.
- Type
- Any