new Base(data)
Create Base instance
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
data |
object | data Properties
|
Methods
-
static staticMethod()
-
-
getDatum(id) → nullable {object}
-
Base get
Parameters:
Name Type Description idstring Id for datum
Returns:
object -datum
Example
base.setDatum('a', 'hello world'); console.log(base.getDatum('a')); // "hello world"; -
log(str)
-
Base log2
Parameters:
Name Type Description strstring string for log
Example
base.log('hello world'); // "LOG1: hello world" -
log2()
-
Base log2
Example
base.log2(); // "LOG2" -
setDatum(id, datum)
-
Set datum
Parameters:
Name Type Description idstring Id for datum
datum* Datum
Example
base.setDatum('a', 'hello world');