get(key: string): string
Parameter | Type | Description |
key | string | Column name |
Type | Description |
string | Data value. |
import dataset from 'pts/dataset';export default function () {// Obtain the data value from the dataset with the column name 'key1', assuming the value is 'value1'.const value = dataset.get('key1');// Output 'key1 => value1'.console.log(`key1 => ${value}`);}