Skip to content
Advertisement

Tag: flatten

Recursive counting in arbitrary nested object

I’m attempting to do some data visualization and dealing with this dataset. Object with arbitrary nested objects. I’m trying to count how many times different values appear in a key. This is just a snippet of the dataset, in the original the owns nested objects go 7+ levels deep. Example dataset I’m working with: I’m thinking I’ll have to do

Advertisement