Skip to content

._chopget

W. "Mac" McMeans edited this page Jul 11, 2022 · 1 revision

localDataStorage._chopget( keyName )

This Memory Key method retrieves the value stored under keyName and then immediately removes keyName from the store. The data type is returned intact, so if an Object was stored, an Object will be returned. This method is useful when the requirement involves the immediate removal of a key because it's no longer needed after its value has been retrieved.

EXAMPLE:

● localData._chopget( 'key4' )   -->   Object {RSK: Array(5)}
● localData._get( 'key4' )   -->   undefined

🛢 The corresponding disk-based method is chopget.

localStorage Keys

The usual suspects:

set / get      clear      key      remove

The esoteric ones:

Array Keys:
push / pull, pullall      poke      contains      where

Broadcasting:
broadcast

Bypass:
forceset / forceget

Data Transfer:
import / export

Duplicates:
countdupes, showdupes, listdupes

Internals:
cancrunch      crunch / uncrunch

shufflestring / unshufflestring

xorstring

Management:
keys

Memory Consumption:

Memory Quota:
showquota

Query:
haskey, hasval, hastype

Security:
safeset / safeget

setscramblekey / getscramblekey

Type Check:
isarray      isbigint      isboolean      iscrunch

isdate      isfloat      isinteger      isnull

isnumber      isobject      isstring

showtype

Utility:
chopget      copy      softset      rename

Properties:

channel      length      quota      version

Settings:

verbosity

Memory Keys

Standard:

_set / _get      _clear      _key      _remove

Unconventional:

Data Sync:
_backup / _restore

Management:
_keys

Security:
_safeset / _safeget

Type Check:
_isarray      _isbigint      _isboolean      _iscrunch

_isdate      _isfloat      _isinteger      _isnull

_isnumber      _isobject      _isstring

_showtype

Utility:
_chopget      _copy      _softset      _rename

Clone this wiki locally