Methods
(static) rokucommunity_bslib_coalesce(consequent, alternate) → {dynamic}
Return consequent if consequent is not invalid, otherwise return alternate
Parameters:
Name | Type | Description |
---|---|---|
consequent |
dynamic | |
alternate |
dynamic |
(static) rokucommunity_bslib_ternary(condition, consequent, alternate) → {dynamic}
Simple ternary function. Given a condition, return the consequent if true, and the alternate if false
Parameters:
Name | Type | Description |
---|---|---|
condition |
dynamic | |
consequent |
dynamic | |
alternate |
dynamic |
(static) rokucommunity_bslib_toString(dynamic, value) → {dynamic}
Convert a value into a string. For non-primitive values, this will return the type instead of its value in most cases.
Parameters:
Name | Type | Description |
---|---|---|
dynamic |
value - the value to be turned into a string. |
|
value |
dynamic |