object-change-callsite
!npm version23 !build status45
!downloads89 !js-standard-style1011Determine the callsite of an object change using Proxies.
Usage
var onChange = require('object-change-callsite')
var state = {}
state = onChange(state, function (attr, value, callsite) {
console.log(`${attr} changed to ${value} at ${callsite}`)
})
state.foo = 'hello'
state.bar = 'world'