log: function(d) {
console.log(Object.assign({}, this.form));
}
// if you have jQuery
log: function(d) {
console.log($.extend({}, this.form));
}
// what $log does
log: function(d) {
console.log(JSON.parse(JSON.stringify(this.form));
}
// ES6 Destructuring
log: d => ({ ...d })
Last active
March 19, 2020 12:47
-
-
Save brenopolanski/f902e88352ed5ff2037e739c13cf0604 to your computer and use it in GitHub Desktop.
Filter VueJS getters and setters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment