TinyBase logoTinyBase

getStore

The getStore method returns a reference to the underlying Store that is backing this Tools object.

getStore(): Store
returnsStore

A reference to the Store.

Example

This example creates a Tools object against a newly-created Store and then gets its reference in order to update its data.

const tools = createTools(createStore());
tools.getStore().setCell('species', 'dog', 'price', 5);
console.log(tools.getStoreStats().totalCells);
// -> 1

Since

v3.0.0