Helpers¶
-
ajja.
declare_namespace
(value)¶ Helper to declare namespaces (e.g. ajja).
Arguments: - value (string) – The namespace to be declared.
ajja.declare_namespace('ajja'); ajja.foo = 'bar';
-
ajja.
isUndefinedOrNull
(value)¶ Check whether value is undefined or null.
Arguments: - value (*) – A value.
Return type: boolean
ajja.isUndefinedOrNull('foo');
-
ajja.
or
(value1, value2)¶ Simple OR function. Returns
value1
if its defined elsevalue2
.Arguments: - value1 (*) – A value.
- value2 (*) – A value.
Returns: value1 or value2
Return type: ajja.or(null, 'asdf');