An array of objects or an empty arr if the database is empty.
Returns an array of the database values.
The database values.
Removes all elements from the database.
Determines whether all the members of an array satisfy the specified test.
A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
If the array has every value.
Returns the elements of an array that meet the condition specified in a callback function.
A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
The filtered items.
Gets the first value in the database.
The first value.
Performs the specified action for each element in an array.
A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
Gets an element with the specified key, and returns its value, or undefined
if the key does not exist.
The key to get from the database.
The value.
Gets an element with the specified key, and returns a buffer, or undefined
if the key does not exist.
The key to get from the database.
The buffer.
Checks if an element exists in the database.
The key of the element to check for.
true
if the element exists, false
if it does not exist.
Checks if all of the elements exist in the database.
The keys of the elements to check for.
true
if all of the elements exist, false
if at least one does not exist.
Checks if any of the elements exist in the database.
The keys of the elements to check for.
true
if any of the elements exist, false
if none exist.
Returns an array of the database keys.
The database keys.
Calls a defined callback function on each element of an array, and returns an array that contains the results.
A function that accepts up to three arguments. The map method calls the callbackFn function one time for each element in the array.
An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
The new array.
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
A function that accepts up to four arguments. The reduce method calls the callbackFn function one time for each element in the array.
If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
The reduced array.
Removes an element from the database.
The key to remove from the database.
true
if the element was removed, false
if the element does not exist.
Sets a new element in the database with the specified key and value.
The key of the element to add.
The value of the element to add.
The value.
Sets a buffer.
The key of the element to add.
The value of the element to add.
Determines whether the specified callback function returns true for any element of an array.
A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
If the array has at least a value.
Sorts an array in place. This method mutates the array and returns a reference to the same array.
Function used to determine the order of the elements. It is expected to return a negative value if first argument is less than second argument, zero if they're equal and a positive value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
The sorted array.
The size of key-value pairs in the database.
Gets all of the key-value pairs in the database.
An array of objects or an empty arr if the database is empty.
Returns an array of the database values.
The database values.
Removes all elements from the database.
Determines whether all the members of an array satisfy the specified test.
A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
If the array has every value.
Returns the elements of an array that meet the condition specified in a callback function.
A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
The filtered items.
Gets the first value in the database.
The first value.
Performs the specified action for each element in an array.
A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
Gets an element with the specified key, and returns its value, or undefined
if the key does not exist.
The key to get from the database.
The value.
Gets an element with the specified key, and returns a buffer, or undefined
if the key does not exist.
The key to get from the database.
The buffer.
Checks if an element exists in the database.
The key of the element to check for.
true
if the element exists, false
if it does not exist.
Checks if all of the elements exist in the database.
The keys of the elements to check for.
true
if all of the elements exist, false
if at least one does not exist.
Checks if any of the elements exist in the database.
The keys of the elements to check for.
true
if any of the elements exist, false
if none exist.
Returns an array of the database keys.
The database keys.
Gets the last value in the database.
The last value.
Calls a defined callback function on each element of an array, and returns an array that contains the results.
A function that accepts up to three arguments. The map method calls the callbackFn function one time for each element in the array.
An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
The new array.
Returns a random value in the database.
The random value.
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
A function that accepts up to four arguments. The reduce method calls the callbackFn function one time for each element in the array.
If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
The reduced array.
Removes an element from the database.
The key to remove from the database.
true
if the element was removed, false
if the element does not exist.
Sets a new element in the database with the specified key and value.
The key of the element to add.
The value of the element to add.
The value.
Sets a buffer.
The key of the element to add.
The value of the element to add.
Determines whether the specified callback function returns true for any element of an array.
A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
If the array has at least a value.
Sorts an array in place. This method mutates the array and returns a reference to the same array.
Function used to determine the order of the elements. It is expected to return a negative value if first argument is less than second argument, zero if they're equal and a positive value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
The sorted array.
Generated using TypeDoc
Gets all of the key-value pairs in the database.