The key to add the value to
The value to add
Optionaloptions: methodOptionsThe options to use
A number
Delete a key
The key to delete
Optionaloptions: methodOptionsThe options to use
A boolean
Optionaloptions: methodOptionsRemove all duplicate values from an array stored in a key
The key of the array to remove duplicate values from
Optionalvalue: (value: any, index: number, obj: any[]) => anyThe value to remove
Optionaloptions: methodOptionsThe options to use
A boolean
Double the value of a key
The key to double the value of
Optionaloptions: methodOptionsThe options to use
A number
Get all the values that end with a key
The key to check if it ends with the value
Optionaloptions: methodOptionsThe options to use
A value
The key of the array to filter. *
The callback filter function to use. *
Optionaloptions: methodOptionsThe options to use. *
An array of filtered values.
Find a value in an array stored in a key
The key of the array to find the value in
The callback function to use for finding the value
Optionaloptions: methodOptionsThe options to use
A value
Optionaloptions: methodOptionsThe key of the array to search. *
The callback function to find the elements. *
The callback function to update the found elements. *
Optionaloptions: methodOptionsThe options to use. *
An array of updated elements.
Get a value from a key
The key to get the value from
Optionaloptions: methodOptionsThe options to use
A value
Optionaloptions: methodOptionsCheck if a key exists
The key to check if it exists
Optionaloptions: methodOptionsThe options to use
A boolean
Check if a key includes a value
The key to check if it includes the value
Optionaloptions: methodOptionsThe options to use
A value
Perform a mathematical operation on a key
The key to perform the mathematical operation on
The mathematical sign to use
The value to use in the mathematical operation
Optionaloptions: methodOptionsThe options to use
A number
Multiply a value to a key
The key to multiply the value to
The value to multiply
Optionaloptions: methodOptionsThe options to use
A number
Remove and return the last element of an array stored in a key
The key of the array to pop the value from
Optionaloptions: methodOptionsThe options to use
A value
Remove one or all occurrences of a value from an array stored in a key
The key of the array to pull the value from
The value or callback function to use to pull the value
OptionalpullAll: booleanWhether to pull all occurrences or just the first one
Optionaloptions: methodOptionsThe options to use
A boolean
Push a value to an array stored in a key
The key of the array to push the value to
The value to push
Optionaloptions: methodOptionsThe options to use
A number
Set a value to a key
The key to set the value to
The value to set
Optionaloptions: methodOptionsThe options to use
A boolean
Optionaloptions: methodOptionsRemove and return the first element of an array stored in a key
The key of the array to shift the value from
Optionaloptions: methodOptionsThe options to use
A value
Get the size of a key
The key to get the size of
Optionaloptions: methodOptionsThe options to use
A number
Get all the values that start with a key
The key to check if it starts with the value
Optionaloptions: methodOptionsThe options to use
A value
Subtract a value from a key
The key to subtract the value from
The value to subtract
Optionaloptions: methodOptionsThe options to use
A number
Get a table
The name of the table to get
A new instance of GoodDB representing the table
Get the type of a key
The key to get the type of
Optionaloptions: methodOptionsThe options to use
A string
Add a value to the beginning of an array stored in a key
The key of the array to unshift the value to
The value to unshift
Optionaloptions: methodOptionsThe options to use
A number
Add a value to a key