From 075a32171caca2f2d1a420e41d6cd62cbb7fe5f4 Mon Sep 17 00:00:00 2001 From: Caio Lesnock Date: Wed, 28 Jul 2021 11:11:59 -0300 Subject: [PATCH] Add comments --- src/store.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/store.ts b/src/store.ts index df2c986..39dfc52 100644 --- a/src/store.ts +++ b/src/store.ts @@ -34,6 +34,10 @@ class Store { } } + /** + * Check if storem is running on node platform + * @returns {Boolean} isRunningOnNode + */ private isRunningOnNode(): boolean { return typeof window === 'undefined' } @@ -93,6 +97,9 @@ class Store { return data } + /** + * Delete specific data to the store + */ delete(dataName: string | number | Array) { // Delete function const deleteData = (name: string | number) => {