Created
March 5, 2018 17:02
-
-
Save isacjunior/f22cb5547a7883234e534064f05584a9 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
const propertyWithObject = (prop, value) => ({ | |
[prop]: value, | |
[`${prop}-string`]: `${value}-string` | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment