Skip to content

Instantly share code, notes, and snippets.

@blemoine
Created March 23, 2017 00:23
Show Gist options
  • Save blemoine/82d01f27609d34d0c39a81a0a2dcf4df to your computer and use it in GitHub Desktop.
Save blemoine/82d01f27609d34d0c39a81a0a2dcf4df to your computer and use it in GitHub Desktop.
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