-
-
Save brunosabot/52db659b2f4df71c6e16de618d132582 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const user = { | |
password: "0123456789abcdef", | |
salt: "1a2b3c", | |
name: "Bruno Sabot", | |
email: "bruno@example.org", | |
}; | |
const { password, salt, ...restOfUser } = user; | |
console.log(password); // 0123456789abcdef | |
console.log(salt); // 1a2b3c | |
console.log(restOfUser); // {name: "Bruno Sabot", email: "bruno@example.org"}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment