function isTheme(theme) {
    const theme_keys = [
        'base00',
        'base01',
        'base02',
        'base03',
        'base04',
        'base05',
        'base06',
        'base07',
        'base08',
        'base09',
        'base0A',
        'base0B',
        'base0C',
        'base0D',
        'base0E',
        'base0F'
    ];
    if (toType(theme) === 'object') {
        for (var i = 0; i < theme_keys.length; i++) {
            if (!(theme_keys[i] in theme)) {
                return false;
            }
        }
        return true;
    }
    return false;
}
//validation for base-16 themes
validation for base-16 themes
validation for base - 16 themes
function isTheme(theme) {
    const theme_keys = [
        'base00',
        'base01',
        'base02',
        'base03',
        'base04',
        'base05',
        'base06',
        'base07',
        'base08',
        'base09',
        'base0A',
        'base0B',
        'base0C',
        'base0D',
        'base0E',
        'base0F'
    ];
    if (toType(theme) === 'object') {
        for (var i = 0; i < theme_keys.length; i++) {
            if (!(theme_keys[i] in theme)) {
                return false;
            }
        }
        return true;
    }
    return false;
}
function isTheme ( theme ) { const theme_keys = [ 'base00' , 'base01' , 'base02' , 'base03' , 'base04' , 'base05' , 'base06' , 'base07' , 'base08' , 'base09' , 'base0A' , 'base0B' , 'base0C' , 'base0D' , 'base0E' , 'base0F' ] ; if ( toType ( theme ) === 'object' ) { for ( var i = 0 ; i < theme_keys . length ; i ++ ) { if ( ! ( theme_keys [ i ] in theme ) ) { return false ; } } return true ; } return false ; }
validation for base-16 themes
validation for base - 16 themes