Constructor
new Record(header, values)
Builds a Record object
Parameters:
Name | Type | Description |
---|---|---|
header |
Array.<string> | |
values |
Array.<object> |
Methods
containsKey(key) → {boolean}
Returns if the header contains a given key.
Parameters:
Name | Type | Description |
---|---|---|
key |
string |
Returns:
true if header contains key.
- Type
- boolean
get(key) → {object}
Returns a value of the given schema key or in the given position.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | number | (integer) |
Returns:
Requested value.
- Type
- object
getString(key) → {string}
Returns a string representation for the value of the given schema key or in the given position.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | number | (integer) |
Returns:
Requested string representation of the value.
- Type
- string
keys() → {Array.<string>}
Returns:
The record header - List of strings.
- Type
- Array.<string>
size() → {number}
Returns:
The amount of values in the record. (integer)
- Type
- number
values() → {Array.<object>}
Returns:
The record values - List of values.
- Type
- Array.<object>