I hereby claim:
- I am psdcoder on github.
- I am psdcoder (https://keybase.io/psdcoder) on keybase.
- I have a public key ASAWIbcPbJjxBuE3DFILkJM9Ufr_ejNbFJfFgYHLVYeFLAo
To claim this, I am signing this object:
//from https://medium.com/@kentcdodds/counting-angularjs-watchers-11c5134dc2ef | |
function getWatchers(root) { | |
root = angular.element(root || document.documentElement); | |
var watcherCount = 0; | |
function getElemWatchers(element) { | |
var isolateWatchers = getWatchersFromScope(element.data().$isolateScope); | |
var scopeWatchers = getWatchersFromScope(element.data().$scope); | |
var watchers = scopeWatchers.concat(isolateWatchers); |
I hereby claim:
To claim this, I am signing this object:
function pad(lvl) { | |
return ' '.repeat(2 * lvl); | |
} | |
function buildGraphStructure(data, lvl = 0) { | |
return Object.keys(data).reduce((acc, key) => { | |
if (data[key]) { | |
return ( | |
acc + | |
`${pad(lvl)}${key} {\n` + |