Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanjosolutions/luaobject
A library of functions for working with objects.
https://github.com/sanjosolutions/luaobject
wow wow-addon wow-addon-lib
Last synced: 5 days ago
JSON representation
A library of functions for working with objects.
- Host: GitHub
- URL: https://github.com/sanjosolutions/luaobject
- Owner: SanjoSolutions
- License: unlicense
- Created: 2020-12-27T22:49:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-31T07:13:15.000Z (12 months ago)
- Last Synced: 2024-05-01T19:25:54.683Z (8 months ago)
- Topics: wow, wow-addon, wow-addon-lib
- Language: Lua
- Homepage: https://www.patreon.com/addons_by_sanjo
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lua Object
This work is devoted to God.
A library of functions for working with objects. It can be used by other add-ons to save some development work.
An object is regarded to be a Lua table with zero or more key-value pairs.
**Functions included:**
* **Object.copy**: a function for copying an object.
* **Object.keys**: a function for extracting the keys of an object.
* **Object.values**: a function for extracting the values of an object.
* **Object.entries**: a function for converting an object to an array.
* **Object.equals**: a function for checking if two objects are equal.
* **Object.assign**: a function for assigning the key-value pairs of one or multiple objects to another object.
* **Object.count**: a function to count the number of key-value pairs on an object.
* **Object.every**: a function for checking if every key-value pair of an object fulfills certain conditions.
* **Object.fromEntries**: a function to convert an array of key-value pairs to an object.
* **Object.isEmpty**: a function for checking if an object has zero key-value pairs.
* **Object.remove**: a function for removing a key-value pair with a specific key from an object.
* **Object.hasKeys** / **Object.hasEntries**: a function to check if an object has any keys.## How to use
Please see "[How to use Library](https://github.com/SanjoSolutions/LuaLibrary#how-to-use)" for how to use this library.
## Support
You can support me on [Patreon](https://www.patreon.com/addons_by_sanjo).