I want a simple way to compare two arrays. One array has a list of emails and the other array is a list of emails who completed a form. I want to then return a list of people who have not completed the form. Here is the function I have, but it works pretty slow.
function findMissingUsers() {
var sheet = getSheet();
users = [array of all emails];
completedUsers = [array of emails who completed form];
users.forEach(function (row) {
completedUsers.forEach(function (user) {
if(row.Email != user.Username) {
console.log(row);
}
});
});
}
Just trying to find a more efficient way of doing this.