Last active
September 5, 2020 12:35
-
-
Save joelnet/eb96d0d9b09849fa6f08ccae4ef02216 to your computer and use it in GitHub Desktop.
Revisions
-
joelnet revised this gist
Mar 18, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,4 +5,4 @@ const user = { name: "Bob Fossil" } renamed(user) //=> { id: 500, name: 'Bob Fossil' } -
joelnet revised this gist
Mar 4, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ const renamed = ({ ID, ...object }) => ({ id: ID, ...object }) const user = { ID: 500, -
joelnet created this gist
Mar 4, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ const renamed = ({ ID, ...rest }) => ({ id: ID, ...rest }) const user = { ID: 500, name: "Bob Fossil" } renamed(user) //=> { id: 5000, name: 'Bob Fossil' }