-
-
Save blemoine/82d01f27609d34d0c39a81a0a2dcf4df to your computer and use it in GitHub Desktop.
This file contains 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
function getFirstName(unknownObject) { | |
if(unknownObject.firstName) { | |
return unknownObject.firstName | |
} | |
return ''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment