index.js
function merge(from, to) {
    to.name = from.name;

    if (from.selfClosing) {
        to.selfClosing = true;
    }

    if (from.value != null) {
        to.value = from.value;
    }

    if (from.repeat) {
        to.repeat = Object.assign({}, from.repeat);
    }

    return mergeAttributes(from, to);
}
function merge(from, to) {
    to.name = from.name;

    if (from.selfClosing) {
        to.selfClosing = true;
    }

    if (from.value != null) {
        to.value = from.value;
    }

    if (from.repeat) {
        to.repeat = Object.assign({}, from.repeat);
    }

    return mergeAttributes(from, to);
}
function merge ( from , to ) { to . name = from . name ; if ( from . selfClosing ) { to . selfClosing = true ; } if ( from . value != null ) { to . value = from . value ; } if ( from . repeat ) { to . repeat = Object . assign ( { } , from . repeat ) ; } return mergeAttributes ( from , to ) ; }
Adds data from first node into second node and returns it
@param  {Node} from
@param  {Node} to
@return {Node}
Adds data from first node into second node and returns it