From aee454faea1d97088e10c5e7c8a073c35ad8a13d Mon Sep 17 00:00:00 2001 From: inventionpro <109528211+inventionpro@users.noreply.github.com> Date: Thu, 15 Feb 2024 16:52:37 +0100 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 8608c93..10722c6 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,16 @@ DB.set('key', 'value') - `has(key)` - Is there a key in the db - `remove(key)` - Removes a key from the db - `all()` - Gets the whole databse as object + +### Number values +Functions for values that are of type number (Values will be converted) +- `add(key, number)` - Adds the number to the current +- `sub(key, number)` - Subtracts the number to the current + +### List values +Functions for values that are of type array +- `push(key, value)` - Pushes value into the list element +- `pull(key, index)` - Removes element at index +- `pop(key)` - Removes last element (return removed value) +- `flat(key)` - Flattens array at key +- `concat(key, value)` - Concats a array to the current one