Created
August 6, 2021 08:40
-
-
Save MarsiBarsi/b6e69e4af76b4f5200195395f4febac7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 client = {name: 'John', login: 'john45', secretKey: 'xyz123'}; | |
const {secretKey, ...clientData} = client; | |
clientData // {name: 'John', login: 'john45'}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment