Skip to content

Instantly share code, notes, and snippets.

@scionwest
Created March 4, 2018 20:48
Show Gist options
  • Save scionwest/d24b0f21c88b5e1749f89a038e48de11 to your computer and use it in GitHub Desktop.
Save scionwest/d24b0f21c88b5e1749f89a038e48de11 to your computer and use it in GitHub Desktop.
var difference = new Set(existingIntegers);
for(var index = 0; index < downloadedIntegers.length; index++) {
if (!existingIntegers.has(downloadedIntegers[index])) {
difference.push(downloadedIntegers[index]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment