I have an object that looks like this:
objectProp = {
property1: [],
property2: [],
}
I want to check if all properties(that are string arrays) if this object are null and return true. I am for some reason stuck. How can I do this? I am using "target": "es2015"
I tried this but does not work:
if (!Object.keys(this.objectProp).every(array => array.length > 0)) {
console.log('all are empety');
}