Created
July 12, 2020 15:14
-
-
Save MartinMalinda/8892f0c27ff41b4b3320ae1da2bc56d8 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
export function serializeUser(user) { | |
return { | |
id: user.id, | |
firstName: user.firstName, | |
lastName: user.lastName, | |
admin: user.isAdmin | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment