export function identityIdLookUp()

in src/libs/transforms.ts [151:163]


export function identityIdLookUp(
    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.identityId;
        }
    }
    return null;
}