In javascript, if (true || false) results in true, but the question is whether the compiler will evaluate the second statement if the first is true. In my case, I want to know if an array has changed, so I believe I have two options: compare the lengths of the arrays (what was and what is now) and compare if the array values are different.
I think the first option requires less work. If (first || second) { give me deleted values, and give me added values }