-
-
Notifications
You must be signed in to change notification settings - Fork 16
.where
localDataStorage.where( arrayKeyName, value )
This checks all elements of arrayKeyName, an Array Key, for the existence of value and, if found, returns the ordinal position in the array where value was found. The data type of value must match.
EXAMPLE:
🔹 Existing Array Key called 'course' having value [{'book':'math'}, {'book':'english'}, {'book':'science'}]:
Check for a certain book:
● localData.where( 'course', {'book':'english'} ); --> 2
📝 NOTE: This method is specific to Array Keys and will fail if used on any other key type. This method is related to contains. Array Keys use one-based array indices.
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