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