In my TypeScript I have this class:
export class PhoneBookPerson {
    Email: string;
    Name: string;
    Phonenumber: string;
    ProfileImg: string;
    Department: string;
    JobTitle: string;
    Username: string;
}
I'm wondering how can I check if any of the properties contains a specific value.
let $SearchTerm = target.val();
function RetrievedUsers(sender: any, args: any) {
    for (let i = 0; i < users.get_count(); i++) {
        let user = users.getItemAtIndex(i);
        let person = new PhoneBookPerson();
        person.Name = user.get_loginName();
        person.Email = user.get_email();
        person.Username = user.get_loginName();
        person.JobTitle = user.get_title();
        <-- search of person contains value from $SearchTerm                        
        usermatch.push(person);
    }
}

$SearchTermvariable? what value you want to match with wich attribute of Person?$SearchTerm contains any kind of value form a user input.I would like it to see if any property in Person contains that value