Created
July 12, 2019 04:51
-
-
Save DennyScott/925d4b12f81f94549ea9f10e7dde9643 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 getUserForPhoneDirectory(person) { | |
const firstName = person?.firstName; | |
const lastName = person?.lastName; | |
const phoneNumber = person?.contact?.phoneNumber; | |
if(firstName && lastName && phoneNumber) { | |
return `${firstName} ${lastName} - ${phoneNumber}` | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment