0.0.1 • Published 8 years ago

twixt-watcher v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

twixt-watcher Function

var Watch = require("twixt-watch"),
    watcher = require("twixt-watch");
    obj = Watch({});

watch(obj, function(obj, changes) {
    var was, is;

    for (var prop in changes) {
        was = changes[prop];
        is = obj[prop];
        console.log(prop, "changed from", was, "to", is);
    }
});