dist/utilify.esm.js
function isEmpty(variable) {
        var emptyVariables = {
            'undefined': true,
            'null': true,
            'number': false,
            'boolean': false,
            'function': false,
            'regexp': false,
            'date': false,
            'error': false
        };

        var strType = globalHelpers.getType(variable);
        var boolReturn = void 0;

        if (emptyVariables.hasOwnProperty(strType)) {
            boolReturn = emptyVariables[strType];
        } else {
            switch (strType) {
                case 'object':
                    boolReturn = this.isObjectEmpty(variable);
                    break;

                case 'string':
                    boolReturn = variable ? false : true;
                    break;

                case 'array':
                    boolReturn = variable.length ? false : true;
                    break;
            }
        }

        return boolReturn;
    }
function isEmpty(variable) {
        var emptyVariables = {
            'undefined': true,
            'null': true,
            'number': false,
            'boolean': false,
            'function': false,
            'regexp': false,
            'date': false,
            'error': false
        };

        var strType = globalHelpers.getType(variable);
        var boolReturn = void 0;

        if (emptyVariables.hasOwnProperty(strType)) {
            boolReturn = emptyVariables[strType];
        } else {
            switch (strType) {
                case 'object':
                    boolReturn = this.isObjectEmpty(variable);
                    break;

                case 'string':
                    boolReturn = variable ? false : true;
                    break;

                case 'array':
                    boolReturn = variable.length ? false : true;
                    break;
            }
        }

        return boolReturn;
    }
function isEmpty ( variable ) { var emptyVariables = { 'undefined' : true , 'null' : true , 'number' : false , 'boolean' : false , 'function' : false , 'regexp' : false , 'date' : false , 'error' : false } ; var strType = globalHelpers . getType ( variable ) ; var boolReturn = void 0 ; if ( emptyVariables . hasOwnProperty ( strType ) ) { boolReturn = emptyVariables [ strType ] ; } else { switch ( strType ) { case 'object' : boolReturn = this . isObjectEmpty ( variable ) ; break ; case 'string' : boolReturn = variable ? false : true ; break ; case 'array' : boolReturn = variable . length ? false : true ; break ; } } return boolReturn ; }
is a given value empty? Objects, arrays, strings

@category Validate
is a given value empty? Objects arrays strings