I have many objects in my JS code. And the depth of them is not known. Here are some examples:
{
type: 'Text',
params: {
column: 'Text'
}
}
or
{
name: 'Text',
column: 'Text',
args: {
column: 'Text',
rel: [
{
name: 'Log',
column: 'Log'
}
]
}
}
I want to count the property column
in each object. How can I do that?