I have a condition set up in typescript which compares 2 variables:
this.CurrentSelection == this.PreviousSelection
Both variables are arrays and can be an empty array ([]). In my app, I have a condition where each of these variables is an empty array (Array(0) in CDT watch). When the comparison happens between these 2 empty arrays, the result is false. It seems like [] == []. Any idea about the underlying reason for this? Do I need an additional "or" clause to check for length==0 for this scenario?