Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is our User
- const User = {
- name: 'John Doe',
- email: 'johndoe@example.com',
- status: 'enabled'
- }
- // NewUser is now a clone of User
- const NewUser = {
- ...User
- }
- // We may update our user at time
- const NewUpdatedUser = {
- ...User,
- status: 'disabled'
- }
Add Comment
Please, Sign In to add comment