I need to evaluate if an object is empty.
For example suppose I have an object:
var home = ....; // this is an object and after I print it
console.log(home) // the result of this option is []
//now I need to check if a object is empty or null
if( home == null || home == undefined )
{
// I don't know specify how object is empty
}
How can I detect whether or not the above object home is null/empty?