Class Biojs.Utils
Defined in: Biojs.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
Biojs.Utils.console
Cross-browser console for debugging.
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
Biojs.Utils.clone(object)
Clone all members from an object.
|
| <static> |
Biojs.Utils.isEmpty(o)
Determine if an onject or array is empty.
|
Field Detail
<static>
Biojs.Utils.console
Cross-browser console for debugging.
The console is disabled by default. That means, all messages written by means Biojs.console.log("My Message") will be ignored.
Use Biojs.console.enable() to enable it.
// Enabling loggin messages
Biojs.console.enable();
...
// Writing a log
Biojs.console.log("My Message");
Method Detail
<static>
{object}
Biojs.Utils.clone(object)
Clone all members from an object.
- Parameters:
- {object} object
- The object to be cloned.
- Returns:
- {object} A Clone of the object passed as argument.
<static>
{bool}
Biojs.Utils.isEmpty(o)
Determine if an onject or array is empty.
- Parameters:
- {object|array} o
- Either object or array to figure out if empty or not.
- Returns:
- {bool} true if empty, false if don't