var Type = (function () {
    function Type() {
    }
    Type.isNull = function (a) {
        switch (typeof a) {
            case 'undefined':
                return true;
            case 'boolean':
            case 'number':
                return false;
            default:
                return a === null || Object.keys(a).length === 0;
        }
    };
    Type.isNotNull = function (a) {
        return !Type.isNull(a);
    };
    Type.areNull = function (a) {
        var r = false;
        var i = a.length;
        while (!r && i) {
            --i;
            r = Type.isNull(a[i]);
        }
        return r;
    };
    Type.areNotNull = function (a) {
        return !Type.areNull(a);
    };
    return Type;
}());
export { Type };
//# sourceMappingURL=Type.js.map