dist/main.js
/**
   * Helper that recursively merges two data objects together.
   */
Helper that recursively merges two data objects together.
Helper that recursively merges two data objects together .
function mergeData(to, from) {
    if (!from) {
      return to;
    }
    var key, toVal, fromVal;
    var keys = hasSymbol ? Reflect.ownKeys(from) : Object.keys(from);
    for (var i = 0; i < keys.length; i++) {
      key = keys[i];
      if (key === '__ob__') {
        continue;
      }
      toVal = to[key];
      fromVal = from[key];
      if (!hasOwn(to, key)) {
        set(to, key, fromVal);
      } else if (toVal !== fromVal && isPlainObject(toVal) && isPlainObject(fromVal)) {
        mergeData(toVal, fromVal);
      }
    }
    return to;
  }
function mergeData ( to , from ) { if ( ! from ) { return to ; } var key , toVal , fromVal ; var keys = hasSymbol ? Reflect . ownKeys ( from ) : Object . keys ( from ) ; for ( var i = 0 ; i < keys . length ; i ++ ) { key = keys [ i ] ; if ( key === '__ob__' ) { continue ; } toVal = to [ key ] ; fromVal = from [ key ] ; if ( ! hasOwn ( to , key ) ) { set ( to , key , fromVal ) ; } else if ( toVal !== fromVal && isPlainObject ( toVal ) && isPlainObject ( fromVal ) ) { mergeData ( toVal , fromVal ) ; } } return to ; }
Helper that recursively merges two data objects together.
Helper that recursively merges two data objects together .
// in case the object is already observed...