0.0.1 • Published 8 years ago
twixt-watcher v0.0.1
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);
}
});
0.0.1
8 years ago