Narnia's Psychedelic Mushrooms
Have ideas to improve npm?Join in the discussion! »

deep-property-counter

1.0.0 • Public • Published

deep-property-counter

traverse and object. count all of its properties. generate a key to count map. useful for tracking memory leaks

var count = require('deep-property-counter')
 
var o = {
  a:[o,1,2,3],
  b:{
    c:{
      name:'bob'
    },
    d:{
      name:'susan'
    }
  }
}
 
var report = {}
console.log(count(o,report))
console.log(report)
 

Install

npm i deep-property-counter

DownloadsWeekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar