-
-
Notifications
You must be signed in to change notification settings - Fork 16
.get
localDataStorage.get( keyName )
This method retrieves the value stored under keyName. The data type is returned intact, so if you set a Boolean, you'll get a Boolean back. This is in contrast to native localStorage, where each key is always returned as a String.
EXAMPLES:
● localData.get( 'key1' ) --> 'Belgian'
● localData.get( 'key2' ) --> 1200.0047
● localData.get( 'key3' ) --> true
● localData.get( 'key4' ) --> Object {RSK: Array(5)}
● localData.get( 'key5' ) --> null
✨ The complement to this is set.
🏿 The corresponding Memory Key method is _get.
📝 NOTE: When this method is used to retrieve a keyName previously stored with forceset, a String will always be returned the value will be coerced (we try to accurately guess).
Array Keys:
push / pull, pullall poke contains where
Broadcasting:
broadcast
Data Transfer:
import / export
Duplicates:
countdupes, showdupes, listdupes
Internals:
cancrunch crunch / uncrunch
shufflestring / unshufflestring
Management:
keys
Memory Consumption:
Memory Quota:
showquota
Query:
haskey, hasval, hastype
setscramblekey / getscramblekey
Type Check:
isarray isbigint isboolean iscrunch
isdate isfloat isinteger isnull
Utility:
chopget copy softset rename
_set / _get _clear _key _remove
Management:
_keys
Type Check:
_isarray _isbigint _isboolean _iscrunch