I want to check if objects within an array is empty or not. This is how I receive my data and the object length is dynamic so I cannot use any hard coded condition.
[{},{},{},{},{},{},{},{},{},{}] // length is dynamic
I have ways liek:
Object.keys(myarray[0]).length === 0; //but this applies only for object.
is there an elegant way of checking this in one condition by any chance?