-
-
Notifications
You must be signed in to change notification settings - Fork 16
.copy
localDataStorage.copy( sourceKeyName, destinationKeyName )
This method creates a new key, destinationKeyName, from the value stored under sourceKeyName, respecting the data type.
Existing keys cannot be overwritten.
EXAMPLES:
● localData.set( 'key1', 14.99 )
● localData.copy( 'key1', 'key99' )
● localData.get( 'key99' ) --> 14.99
🌐 This method may fire an event allowing you to monitor the key change.
🏿 The corresponding Memory Key method is _copy.
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