delTables
The delTables method lets you remove all of the data in a Store.
delTables(): this| returns | this | A reference to the |
|---|
Example
This example removes the data of a Store.
import {createStore} from 'tinybase';
const store = createStore().setTables({pets: {fido: {species: 'dog'}}});
store.delTables();
console.log(store.getTables());
// -> {}
Since
v1.0.0