function isEmpty(obj) {
	if ( obj === null ) {
		return true;
	}

	for( let prop in obj ) {
        if( obj.hasOwnProperty( prop ) )
            return false;
    }
    return true;
}
/**
 * Efficient test if an object is empty (ie. {} ).
 * 
 * @see https://stackoverflow.com/questions/679915/how-do-i-test-for-an-empty-javascript-object
 * @param {Object} obj Object to test for being empty
 */
Efficient test if an object is empty .


Efficient test if an object is empty .
function isEmpty(obj) {
	if ( obj === null ) {
		return true;
	}
	for( let prop in obj ) {
        if( obj.hasOwnProperty( prop ) )
            return false;
    }
    return true;
}
function isEmpty ( obj ) { if ( obj === null ) { return true ; } for ( let prop in obj ) { if ( obj . hasOwnProperty ( prop ) ) return false ; } return true ; }
Efficient test if an object is empty (ie.
Efficient test if an object is empty ( ie .