Skip to content

Highly performant observable objects for javascript.

Notifications You must be signed in to change notification settings

lklacar/observable-obj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

observable-obj

Highly performant observable objects for javascript without using Proxy objects.

Example

// Global listener will be called for every nested object
const observableObj = observable({a: "b", b: {c: "D"}}, true, function (prop, oldValue, newValue) {
    console.log({prop, oldValue, newValue});
});

// Local listener will be called only for that object
observableObj.listen(function (prop, oldValue, newValue) {
    console.log({prop, oldValue, newValue});
});


observableObj.a = "c";
console.log(observableObj);

About

Highly performant observable objects for javascript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published