Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save whoisryosuke/aa745b679059fe2673e7c6785f6a2f63 to your computer and use it in GitHub Desktop.
Save whoisryosuke/aa745b679059fe2673e7c6785f6a2f63 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' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment