dist/jxh.js
function jxh(obj, indentStr = '  ', indentLevel = 0) {
    let html = '';
    switch (getType(obj)) {
        case 'array':
            for (let item of obj) {
                html += jxh(item, indentStr, indentLevel);
            }
            break;
        case 'object':
            for (let tag in obj) {
                let content = obj[tag];
                html += routeTags(tag, content, indentStr, indentLevel);
            }
            break;
        default:
            objTypeError(obj);
            break;
    }
    return html;
}
function jxh(obj, indentStr = '  ', indentLevel = 0) {
    let html = '';
    switch (getType(obj)) {
        case 'array':
            for (let item of obj) {
                html += jxh(item, indentStr, indentLevel);
            }
            break;
        case 'object':
            for (let tag in obj) {
                let content = obj[tag];
                html += routeTags(tag, content, indentStr, indentLevel);
            }
            break;
        default:
            objTypeError(obj);
            break;
    }
    return html;
}
function jxh ( obj , indentStr = '  ' , indentLevel = 0 ) { let html = '' ; switch ( getType ( obj ) ) { case 'array' : for ( let item of obj ) { html += jxh ( item , indentStr , indentLevel ) ; } break ; case 'object' : for ( let tag in obj ) { let content = obj [ tag ] ; html += routeTags ( tag , content , indentStr , indentLevel ) ; } break ; default : objTypeError ( obj ) ; break ; } return html ; }
main function - entry point for object & array arguments
main function - entry point for object & array arguments