Created
February 12, 2020 15:22
-
-
Save mchelen/fb8b96b49e225de7787fd914131909c5 to your computer and use it in GitHub Desktop.
ES6 Destructured Object Parameters after Prettier
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
greet({ | |
greeting: "Hello", | |
firstName: "Jane", | |
lastName: "Smith", | |
title: "Dr." | |
}); | |
function greet({ greeting, firstName, lastName, title }) { | |
console.log(`${greeting}, ${title} ${firstName} ${lastName}`); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From Prettier playground