Lang Class
src/ui/react/src/oop/lang.js:4
Provides core language utilities.
Index
Methods
isArray
-
value
Check if the passed value is an array.
Parameters:
-
value
AnyThe value which have to be checked.
Returns:
True if the passed value is an array, false otherwise.
isBoolean
-
value
Check if the passed value is boolean.
Parameters:
-
value
AnyThe value which have to be checked.
Returns:
True if the passed value is boolean, false otherwise.
isFunction
-
value
Check if the passed value is a function.
Parameters:
-
value
AnyThe value which have to be checked.
Returns:
True if the passed value is a function, false otherwise.
isNull
-
value
Check if the passed value is NULL.
Parameters:
-
value
AnyThe value which have to be checked.
Returns:
True if the passed value is NULL, false otherwise.
isNumber
-
value
Check if the passed value is number.
Parameters:
-
value
AnyThe value which have to be checked.
Returns:
True if the passed value is number, false otherwise.
isObject
-
value
Check if the passed value is an object
Parameters:
-
value
AnyThe value which have to be checked.
Returns:
True if the passed value is an object, false otherwise.
isString
-
value
Check if the passed value is a string.
Parameters:
-
value
AnyThe value which have to be checked.
Returns:
True if the passed value is a string, false otherwise.
mix
-
receiver
-
supplier
Adds all properties from the supplier to the receiver. The function will add all properties, not only these owned by the supplier.
Parameters:
-
receiver
ObjectThe object which will receive properties.
-
supplier
ObjectThe object which provides properties.
Returns:
The modified receiver.
toInt
-
value
Converts value to Integer.
Parameters:
-
value
AnyThe value which have to be converted to Integer.
Returns:
The converted value.