Skip to content

Instantly share code, notes, and snippets.

@GroomedGorilla
Created May 28, 2019 18:49
Show Gist options
  • Save GroomedGorilla/0d66ea58469a34621243ce0d76512ad4 to your computer and use it in GitHub Desktop.
Save GroomedGorilla/0d66ea58469a34621243ce0d76512ad4 to your computer and use it in GitHub Desktop.
Remove one element from object
let objB = {id : '123', name: 'JZ', craving: 'burgers'};
(({id, ...others }) => ({...others}))(objB);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment