Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Lesnock committed Jul 28, 2021
1 parent 5da9684 commit 075a321
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class Store {
}
}

/**
* Check if storem is running on node platform
* @returns {Boolean} isRunningOnNode
*/
private isRunningOnNode(): boolean {
return typeof window === 'undefined'
}
Expand Down Expand Up @@ -93,6 +97,9 @@ class Store {
return data
}

/**
* Delete specific data to the store
*/
delete(dataName: string | number | Array<string | number>) {
// Delete function
const deleteData = (name: string | number) => {
Expand Down

0 comments on commit 075a321

Please sign in to comment.