hasTables
The hasTables
method returns a boolean indicating whether any Table
objects exist in the Store
.
hasTables(): boolean
returns | boolean | Whether any |
---|
Example
This example shows simple existence checks.
const store = createStore();
console.log(store.hasTables());
// -> false
store.setTables({pets: {fido: {species: 'dog'}}});
console.log(store.hasTables());
// -> true