Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let something = {
- firstname: 'pasmo'
- }
- let newsomething = Object.assign({}, newsomething, something)
- this.$set(newsomething, 'lastname', 'wewxd')
- console.log(newsomething)
- ============================================================
- output: {firstname: 'pasmo', lastname: 'wewxd'}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement