Methods
(static) asString(obj) → {String}
Convert an object to a string.
In the case of null
and undefined
the function returns
the empty string, in all other cases the result of calling
toString
on the passed object is returned.
Parameters:
Name | Type | Description |
---|---|---|
obj |
Any | The object to convert to a string. |
Returns:
string representation of the passed object.
- Type
- String
(static) warn(message)
Print a warning message to the console.
Parameters:
Name | Type | Description |
---|---|---|
message |
String | The message to be printed. |