Created
May 20, 2021 14:55
-
-
Save rafaelrozon/fc6849b021b2f9788ba007ec0fb3f62e 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 getUser = (overrides = {}) => { | |
const defaultValues = { | |
username: "Some User", | |
anchor: "@someuser", | |
image: "https://webapp/static/images/someuser.png" | |
}; | |
return Object.assign(defaultValues, overrides); | |
}; | |
export default getUser; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment