src/nodes.js
function getClasses(element) {
    const className = element.className;
    const classes = {};
    if (className !== null && className.length > 0) {
        className.split(' ').forEach((className) => {
            if (className.trim().length) {
                classes[className.trim()] = true;
            }
        });
    }
    return classes;
}
function getClasses(element) {
    const className = element.className;
    const classes = {};
    if (className !== null && className.length > 0) {
        className.split(' ').forEach((className) => {
            if (className.trim().length) {
                classes[className.trim()] = true;
            }
        });
    }
    return classes;
}
function getClasses ( element ) { const className = element . className ; const classes = { } ; if ( className !== null && className . length > 0 ) { className . split ( ' ' ) . forEach ( ( className ) => { if ( className . trim ( ) . length ) { classes [ className . trim ( ) ] = true ; } } ) ; } return classes ; }
Builds the class object for the VNode.
Builds the class object for the VNode .