Skip to content

Instantly share code, notes, and snippets.

@joelnet
Created March 1, 2019 07:24
Show Gist options
  • Save joelnet/eee51eee3472bff08ffd064c8ddce202 to your computer and use it in GitHub Desktop.
Save joelnet/eee51eee3472bff08ffd064c8ddce202 to your computer and use it in GitHub Desktop.
const noPassword = ({ password, ...rest }) => rest
const user = {
id: 100,
name: 'Howard Moon',
password: 'Password!'
}
noPassword(user) //=> { id: 100, name: 'Howard moon' }
@joelnet
Copy link
Author

joelnet commented Mar 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment