KeyValueBasedCollection
Methods for key-value-based collections.
set(key, value)
set(key, value)
Set a value.
key
value
returns String | Number | Object | Array
Example:
get(key)
get(key)
Get a value.
key
returns String | Number | Object | Array
Example:
push(key, data)
push(key, data)
Push a data to array.
key
data
returns Array
Example:
remove(key, data)
remove(key, data)
Remove a data from array.
key
data
returns Array
Example:
find(key, params)
find(key, params)
Find a data from array.
key
params
returns Object
Example:
filter(key, params)
filter(key, params)
Filter data from array.
key
params
returns Array
Example:
has(key, params)
has(key, params)
Check if they have key or data.
key
params
returns Boolean
Example:
increase(key, value)
increase(key, value)
Increase the number in the value.
key
value
returns Number
Example:
decrease(key, value)
decrease(key, value)
Decrease the number in the value.
key
value
returns Number
Example:
delete(key)
delete(key)
Delete a key.
key
returns Number
Example:
Last updated