Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const partial = { id: 100, name: 'Howard Moon' }
- const user = { ...partial, id: 100, password: 'Password!' }
- user //=> { id: 100, name: 'Howard Moon', password: 'Password!' }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement