I could not find how to compare two arrays in app script so here is what I came up with (Using the Q&A method of stackoverflow).
I wanted a function that would display the contents of Array 1 that are the same as Array 2 and that are different than Array 2.
If someone has a more efficient way please post.
I find this to be more concise and, if you are doing lots of records, faster. You could speed it up faster if you don't care about keeping your main arrays by just using those instead of duplicating them into same/diff. It works by deleting from the diff those that have been found as the same and deleting from the same and adding to the diff area those that are different.
Thanks Kevrone. I made one modification so that it didn't merge the two different arrays, but rather just listed the same and different numbers, which now matches my original script.