Skip to content

Commit f3635ef

Browse files
committed
Add isInitialized() documentation
1 parent 0b2e0cd commit f3635ef

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,18 @@ const store = require('@leapfrogtechnology/async-store');
142142
app.use(store.initializeMiddleware());
143143
```
144144

145+
### isInitialized()
146+
147+
Check if the store has been initialized or not.
148+
149+
- `@params {boolean}` - Returns either true or false.
150+
151+
```js
152+
if (store.isInitialized()) {
153+
// Do something.
154+
}
155+
```
156+
145157
### set()
146158

147159
Persists properties in the store.

0 commit comments

Comments
 (0)