Created
June 4, 2020 08:11
-
-
Save iceener/c9adf675083a8726b8a59414486b6489 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
// Remove property from object with rest | |
const data = { id: 1, name: 'overment', www: 'overment.com' } | |
const { ['www']: removed, ...rest} = data; | |
console.log(rest); | |
// Inspiration from: Todd Motto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment