arrFilter = getUsersByKeyValue(users, "eyeColor", "blue"); arrFilter2 = getUsersByKeyValue(users, "eyeColor", "green"); arrFilter3 = getUsersByKeyValue([...arrFilter, ...arrFilter2], "gender", "female");