I have an array object that I need to check for emptiness.
const sampleData = {
test:[],
test2:[],
test1:["can"]
}
This is the code I'm using to check for emptiness:
const dataObject = Object.values(sampleData)
console.log(dataObject)
The expected output should be:
const sampleData = {
test1:["can"]
}