.get - macmcmeans/localDataStorage GitHub Wiki
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).