Skip to content

Commit

Permalink
modified base storage.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Sutan Nst committed Mar 22, 2019
1 parent d60c226 commit d0538ce
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/storage.js
Expand Up @@ -45,10 +45,6 @@ export const remove = (storage, key) => {
return false
}

export const clear = storage => {
return storage.clear()
}

export const keys = storage => {
const keys = []
for (let i = 0; i < storage.length; i++) {
Expand All @@ -57,3 +53,5 @@ export const keys = storage => {
}
return keys
}

export const clear = storage => storage.clear()

0 comments on commit d0538ce

Please sign in to comment.