In the above example, we start with seven user records. Attributes may include a first name, a last name, and an email address. The recordset is stored as an array of objects. We then filter the result for two subsets. We find users that are gmail users and users that do not have the last name of “Smith”.
If you look at the gmail filter, you will notice an additional condition that looks to see if the email address is defined. That condition is there because Amy Thomas has no email address within the dataset. If that condition was not there, the code would error out.