Skip to content

Allow default value in get()#2

Open
paulmartimx wants to merge 1 commit intojoaocunha:masterfrom
paulmartimx:patch-1
Open

Allow default value in get()#2
paulmartimx wants to merge 1 commit intojoaocunha:masterfrom
paulmartimx:patch-1

Conversation

@paulmartimx
Copy link

Proposal: Modification to get() method to allow a default value that will be returned if "key" is not present in localStorage ( ls.getItem(key) === null )

Proposal: Modification to get() method to allow a default value that will be returned if "key" is not present in localStorage ( ls.getItem(key) === null  )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant