getStore
The getStore method returns a reference to the underlying Store that is backing this Metrics object.
getStore(): StoreExample
This example creates a Metrics object against a newly-created Store and then gets its reference in order to update its data.
import {createMetrics, createStore} from 'tinybase';
const metrics = createMetrics(createStore());
metrics.setMetricDefinition('speciesCount', 'species');
metrics.getStore().setCell('species', 'dog', 'price', 5);
console.log(metrics.getMetric('speciesCount'));
// -> 1
Since
v1.0.0