Skip to content

Instantly share code, notes, and snippets.

@MarsiBarsi
Created August 6, 2021 08:40
Show Gist options
  • Save MarsiBarsi/b6e69e4af76b4f5200195395f4febac7 to your computer and use it in GitHub Desktop.
Save MarsiBarsi/b6e69e4af76b4f5200195395f4febac7 to your computer and use it in GitHub Desktop.
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