function synchronizeAttrs(element, values) {
    if (!element) {
        return;
    }
    const attributes = Object.keys(values);
    attributes.forEach((attribute) => {
        smartSetAttribute(element, attribute, values[attribute]);
    });
}
/**
 * @param {HTMLElement} element Element to act on
 * @param {Object} values values and attributes to set, if the value is
 *                        falsy it the attribute will be removed
 */
@param {HTMLElement} element Element to act on
@param {Object} values values and attributes to set, if the value is
falsy it the attribute will be removed
@param { HTMLElement } element Element to act on @param { Object } values values and attributes to set if the value is falsy it the attribute will be removed
function synchronizeAttrs(element, values) {
    if (!element) {
        return;
    }
    const attributes = Object.keys(values);
    attributes.forEach((attribute) => {
        smartSetAttribute(element, attribute, values[attribute]);
    });
}
function synchronizeAttrs ( element , values ) { if ( ! element ) { return ; } const attributes = Object . keys ( values ) ; attributes . forEach ( ( attribute ) => { smartSetAttribute ( element , attribute , values [ attribute ] ) ; } ) ; }
@param {HTMLElement} element Element to act on
 @param {Object} values values and attributes to set, if the value is
                        falsy it the attribute will be removed
@param { HTMLElement } element Element to act on @param { Object } values values and attributes to set if the value is falsy it the attribute will be removed