frozen-core
General purpose lib to create maintainable and immutable Objects - the idea is to work without side effects .
- Very small (4KB, raw)
- Object properties are immutable
- Optional state properties
- Simple Typesafe inheritance
- Hierarchic method bubbling
- Enforces a specifc way to implement your Objects and Methods
var frozenCore = ;var myObject = frozenCore// the properties of the resulting object are always immutable, not configurable as the object itself too, one can't add new properties, remove or configure them
API
myObject;myObjectmyObject //returns a reference to the immutable state copymyObjectparent // reference to the latest origin
Simple implementation example
var cube = frozenCore; var mutatedCube = cube;