hasValues
The hasValues method returns a boolean indicating whether any Values exist in the Store.
hasValues(): boolean| returns | boolean | Whether any |
|---|
Example
This example shows simple existence checks.
import {createStore} from 'tinybase';
const store = createStore();
console.log(store.hasValues());
// -> false
store.setValues({open: true});
console.log(store.hasValues());
// -> true
Since
v3.0.0