._get - macmcmeans/localDataStorage GitHub Wiki

localDataStorage._get( keyName )

This Memory Key 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 will overwrite an existing value for keyName. If this happens, the prior value cannot be retrieved.

EXAMPLE:

● localData._get( 'key1' )   -->   ['Belgian']

✨ The complement to this is _set.

🛢 The corresponding disk-based method is get.