title: In Vue2, how to remove observor functionality from object to save in cookie
body: <p>I have the following code fragment and would like to strip the observer functionality from the user.accounts object. How would I do that? <code>this.$cookies</code> is a reference to my <code>vue-cookies</code> instance</p>
  
  <pre><code>setUserAccount(user, account){
    // var accounts = Object.assign({},user.accounts)
    this.$cookies.set('AUTH_TOKEN', user.authHash);
    this.$cookies.set('CURRENT_ACCOUNT', user.id);
    this.$cookies.set('ACCOUNTS', user.accounts);
    console.log(user.accounts);
  },
  </code></pre>