Sunday, May 13, 2018

JavaScript - Check if object is empty

function isEmptyObject ( obj ) {
    var name;
    for ( name in obj ) {
        return false;
    }
    return true;
}

No comments:

Get Indian financial year based on date

This function lets you get the start and end date of Indian financial year based on given date. This can also be modified for US financia...