export function phoneNumberLookUp()

in src/libs/transforms.ts [165:177]


export function phoneNumberLookUp(
    phoneBook: PhoneBook,
    subscriptionName: string,
): Option<string> {
    // Look up the subscription name in the phoneBook and return the phone number if there was one,
    // otherwise return null;
    for (const record of phoneBook) {
        if (record.subscriptionName == subscriptionName) {
            return record.phoneNumber;
        }
    }
    return null;
}