Is there way to calculate the total amount of empty attributes within a nested Object?
[{
"name": test,
"id" : "",
"rating": {
"title": "",
"type": "book",
"star": 2
}
}]
I've tried Object.keys(data).length
but obviously this doesn't give me back the nested ones.
Any suggestions would be helpful.