Skip to content

.pullall

W. ❝Mac❞ McMeans edited this page Jan 2, 2024 · 8 revisions

localDataStorage.pullall( arrayKeyName, value )

This method yanks all elements matching value from arrayKeyName, an existing Array Key, performing a destructive delete operation. A sparse array will not be returned. The data type of value must match.

EXAMPLE:

🔹 Existing Array Key called 'letters' having value ['a', 'aa', 'b', 'bb', 'a', 'c']:

Remove all elements having the value of 'a':
● localData.pullall( 'letters', 'a' ); --> ['aa', 'b', 'bb', 'c']

The value of the updated arrayKeyName is returned when this method executes.

🌐 This method may fire an event allowing you to monitor the key change.

📝 NOTE: This method is specific to Array Keys and will fail if used on any other key type. This method is related to pull. Array Keys use one-based array indices.

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