Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- handleData = (obj) =>{
- console.log(obj) // shows {name: 'Laura', type: 'file',date: '1 min ago'}
- obj.name = 'newName'; // doesn't work
- Object.assign(obj, {name: 'newName', type: 'newType'}) // if console log it shows {name: 'newName', type: 'newType'} missing date
- }
Add Comment
Please, Sign In to add comment