JSFiddle - React, Tailwind, and code Playground

by Md. Atiquzzaman Soikat

HTML

<div id="app">
  {{ message }}
</div>

JavaScript

var app = new Vue({
  el: '#app',
  methods: {
    service : function() {
    	console.log('service called');
    }
  },
  data: {
    message: 'Hello Vue!'
  }
});

var newObject = Object.keys(app).reduce(function(previous, current) {
		if (!current.match('^[_$]')) {
      previous[current] = app[current]
     }
      return previous;
}, {});

console.log('app', newObject);