detto
Demo
Feature
You can save anything in detto object even the values is changed or moved (by array manipulation functions).
Array Manipulations (push, pop, shift, unshift, splice, reverse) is Fully Supported.
Zero Dependencies, Native Javascript only.
Installation
$ yarn add detto
Usage
const object = deep: nested: 123 const detto = {} // watch data changingconst callback = console const proxiedObject = // > []// > ['deep']// > ['deep', 'nested']console// > {"deep":{"nested":{}}} proxiedObjectdeepnested = key: 123 // > ['deep', 'nested']// > ['deep', 'nested', 'key']console// > {"deep":{"nested":{"key":{}}}} proxiedObjectdeepnested = {}// > ['deep', 'nested']console// > {"deep":{"nested":{}}} delete proxiedObjectdeep// > []console// > {}
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
License
This project is licensed under the MIT License - see the LICENSE file for details